Use move semantics for property name
This commit is contained in:
parent
242d67fa8d
commit
3d3555d373
@ -207,7 +207,7 @@ public:
|
|||||||
propertyCount_ = allProperties.Size();
|
propertyCount_ = allProperties.Size();
|
||||||
properties_ = new Property[propertyCount_];
|
properties_ = new Property[propertyCount_];
|
||||||
for (SizeType i = 0; i < propertyCount_; i++) {
|
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