Skip to content

Commit a1db52b

Browse files
authored
Merge pull request open-source-parsers#543 from chfast/patch-1
Rename variable empty to emptyString
2 parents d8cd848 + 1572539 commit a1db52b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ bool Value::CZString::isStaticString() const { return storage_.policy_ == noDupl
343343
* This optimization is used in ValueInternalMap fast allocator.
344344
*/
345345
Value::Value(ValueType vtype) {
346-
static char const empty[] = "";
346+
static char const emptyString[] = "";
347347
initBasic(vtype);
348348
switch (vtype) {
349349
case nullValue:
@@ -357,7 +357,7 @@ Value::Value(ValueType vtype) {
357357
break;
358358
case stringValue:
359359
// allocated_ == false, so this is safe.
360-
value_.string_ = const_cast<char*>(static_cast<char const*>(empty));
360+
value_.string_ = const_cast<char*>(static_cast<char const*>(emptyString));
361361
break;
362362
case arrayValue:
363363
case objectValue:

0 commit comments

Comments
 (0)