mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-10 03:29:59 +01:00
Use move semantics for property name
This commit is contained in:
parent
242d67fa8d
commit
3d3555d373
@ -207,7 +207,7 @@ public:
|
||||
propertyCount_ = allProperties.Size();
|
||||
properties_ = new Property[propertyCount_];
|
||||
for (SizeType i = 0; i < propertyCount_; i++) {
|
||||
properties_[i].name.SetString(allProperties[i].GetString(), allProperties[i].GetStringLength(), allocator_);
|
||||
properties_[i].name = allProperties[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user