Fix read from moved object.

This commit is contained in:
Marcin Kacprzak 2022-09-02 16:15:54 +02:00
parent b12a54ed15
commit f4f5c3cf3a

View File

@ -3229,9 +3229,11 @@ static bool ParseJsonAsValue(Value *ret, const json &o) {
break;
}
#endif
const bool isNotNull = val.Type() != NULL_TYPE;
if (ret) *ret = std::move(val);
return val.Type() != NULL_TYPE;
return isNotNull;
}
static bool ParseExtrasProperty(Value *ret, const json &o) {