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.
2 parents d8cd848 + 1572539 commit a1db52bCopy full SHA for a1db52b
src/lib_json/json_value.cpp
@@ -343,7 +343,7 @@ bool Value::CZString::isStaticString() const { return storage_.policy_ == noDupl
343
* This optimization is used in ValueInternalMap fast allocator.
344
*/
345
Value::Value(ValueType vtype) {
346
- static char const empty[] = "";
+ static char const emptyString[] = "";
347
initBasic(vtype);
348
switch (vtype) {
349
case nullValue:
@@ -357,7 +357,7 @@ Value::Value(ValueType vtype) {
357
break;
358
case stringValue:
359
// allocated_ == false, so this is safe.
360
- value_.string_ = const_cast<char*>(static_cast<char const*>(empty));
+ value_.string_ = const_cast<char*>(static_cast<char const*>(emptyString));
361
362
case arrayValue:
363
case objectValue:
0 commit comments