mirror of https://github.com/axmolengine/axmol.git
Fix CCValue move assignment with std::string
This commit is contained in:
parent
04fc722d8d
commit
f2b4c3d647
|
@ -93,7 +93,7 @@ Value::Value(const std::string& v)
|
|||
_field.strVal = new (std::nothrow) std::string(v);
|
||||
}
|
||||
|
||||
Value::Value(std::string&& v) {
|
||||
Value::Value(std::string&& v) : _type(Type::STRING) {
|
||||
_field.strVal = new (std::nothrow) std::string(std::move(v));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue