summaryrefslogtreecommitdiff
path: root/libs/libjson/src/stdafx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libjson/src/stdafx.cxx')
-rw-r--r--libs/libjson/src/stdafx.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/libjson/src/stdafx.cxx b/libs/libjson/src/stdafx.cxx
index 98f83a0b3a..32eb3c894f 100644
--- a/libs/libjson/src/stdafx.cxx
+++ b/libs/libjson/src/stdafx.cxx
@@ -54,12 +54,16 @@ LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM &param)
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const NULL_PARAM &param)
{
- json.push_back(JSONNode(param.szName, nullptr));
+ JSONNode newOne(JSON_NULL);
+ newOne.set_name(param.szName);
+ json.push_back(newOne);
return json;
}
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const JSON_PARAM &param)
{
- json.push_back(JSONNode(param.szName, param.node));
+ JSONNode newOne(param.node);
+ newOne.set_name(param.szName);
+ json.push_back(newOne);
return json;
}