File tree 2 files changed +8
-5
lines changed 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,12 @@ class JSON_API Value {
233
233
#endif // ifndef JSON_USE_CPPTL_SMALLMAP
234
234
#endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
235
235
236
- public :
236
+ private :
237
237
struct StaticInitTag {};
238
- Value (StaticInitTag); // /< A special constructor for Value::null.
238
+ Value (StaticInitTag); // /< A special constructor for Value::kNull.
239
+ static const Value kNull ;
240
+
241
+ public:
239
242
/* * \brief Create a default Value of the given type.
240
243
241
244
This is a very useful constructor.
Original file line number Diff line number Diff line change 23
23
24
24
namespace Json {
25
25
26
- static const Value kNull ((Value::StaticInitTag ()));
27
- const Value& Value::null = kNull ;
28
- const Value& Value::nullRef = kNull ;
26
+ const Value Value:: kNull ((Value::StaticInitTag ()));
27
+ const Value& Value::null = Value:: kNull ;
28
+ const Value& Value::nullRef = Value:: kNull ;
29
29
30
30
const Int Value::minInt = Int (~(UInt (-1 ) / 2 ));
31
31
const Int Value::maxInt = Int (UInt (-1 ) / 2 );
You can’t perform that action at this time.
0 commit comments