Skip to content

Commit 300b39f

Browse files
hchunhuicdunn2001
authored andcommitted
explicit ctor
1 parent 6c3a4b6 commit 300b39f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/json/value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class JSON_API Value {
235235

236236
private:
237237
struct StaticInitTag {};
238-
Value(StaticInitTag); ///< A special constructor for Value::kNull.
238+
explicit Value(StaticInitTag) {} ///< A special constructor for Value::kNull.
239239
static const Value kNull;
240240

241241
public:

src/lib_json/json_value.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ bool Value::CZString::isStaticString() const { return storage_.policy_ == noDupl
299299
// //////////////////////////////////////////////////////////////////
300300
// //////////////////////////////////////////////////////////////////
301301

302-
Value::Value(Value::StaticInitTag) {}
303-
304302
/*! \internal Default constructor initialization must be equivalent to:
305303
* memset( this, 0, sizeof(Value) )
306304
* This optimization is used in ValueInternalMap fast allocator.

0 commit comments

Comments
 (0)