We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d2a69 commit b299d35Copy full SHA for b299d35
src/lib_json/json_value.cpp
@@ -39,8 +39,8 @@ namespace Json {
39
// static
40
Value const& Value::nullSingleton()
41
{
42
- static Value const* nullStatic = new Value;
43
- return *nullStatic;
+ static Value const nullStatic;
+ return nullStatic;
44
}
45
46
// for backwards compatibility, we'll leave these global references around, but DO NOT
0 commit comments