File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ bool Value::CZString::isStaticString() const { return storage_.policy_ == noDupl
343
343
* This optimization is used in ValueInternalMap fast allocator.
344
344
*/
345
345
Value::Value(ValueType vtype) {
346
- static char const empty [] = "";
346
+ static char const emptyString [] = "";
347
347
initBasic(vtype);
348
348
switch (vtype) {
349
349
case nullValue:
@@ -357,7 +357,7 @@ Value::Value(ValueType vtype) {
357
357
break;
358
358
case stringValue:
359
359
// 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 ));
361
361
break;
362
362
case arrayValue:
363
363
case objectValue:
You can’t perform that action at this time.
0 commit comments