mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 12:14:11 +01:00
Codefix: move or pass by reference instead of copy
This commit is contained in:
@@ -91,7 +91,7 @@ bool ScriptAdminMakeJSON(nlohmann::json &json, HSQUIRRELVM vm, SQInteger index,
|
||||
return false;
|
||||
}
|
||||
|
||||
json[key] = std::move(value);
|
||||
json[std::move(key)] = std::move(value);
|
||||
}
|
||||
sq_pop(vm, 1);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user