Fix CCValue move assignment with std::string

This commit is contained in:
halx99 2021-07-06 01:44:02 +08:00
parent 04fc722d8d
commit f2b4c3d647
1 changed files with 1 additions and 1 deletions

View File

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