Skip to content

Commit 5547ff0

Browse files
committed
Remove initialization of string with 0
1 parent a29d101 commit 5547ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ bool ObjPropertyType::read(std::istream& in) {
13391339
HANDLE_VECTOR_READ_(T, ObjRefSurface);
13401340
} else if (second & ObjTypeString) {
13411341
std::vector<std::string>* val = (std::vector<std::string>*)mem;
1342-
std::string x = 0;
1342+
std::string x;
13431343
while ((in.peek() != '\n') && (in >> x))
13441344
val->push_back(x);
13451345
return true;

0 commit comments

Comments
 (0)