mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-11-01 11:52:59 +01:00
Use move semantics for property name
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user