Minor refactor

This commit is contained in:
MihailRis
2024-01-03 20:42:26 +03:00
parent 0d36f52bdd
commit 2ad115a2a8
9 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ JObject& JObject::put(string key, int value) {
JObject& JObject::put(string key, int64_t value) {
auto found = map.find(key);
if (found != map.end()) delete found->second;
if (found != map.end()) found->second;
valvalue val;
val.integer = value;
map.insert(make_pair(key, new Value(valtype::integer, val)));