Use move semantics for property name

This commit is contained in:
miloyip 2015-05-07 23:37:05 +08:00
parent 242d67fa8d
commit 3d3555d373

View File

@ -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];
}
}
}