mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-21 10:05:01 +01:00
Merge pull request #502 from open-source-parsers/null-object
Allow dtor for nullSingleton
This commit is contained in:
commit
b14c8c1423
@ -39,8 +39,8 @@ namespace Json {
|
||||
// static
|
||||
Value const& Value::nullSingleton()
|
||||
{
|
||||
static Value const* nullStatic = new Value;
|
||||
return *nullStatic;
|
||||
static Value const nullStatic;
|
||||
return nullStatic;
|
||||
}
|
||||
|
||||
// for backwards compatibility, we'll leave these global references around, but DO NOT
|
||||
|
Loading…
x
Reference in New Issue
Block a user