1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Do not copy vector

This commit is contained in:
Andrei Kortunov 2024-03-16 16:26:26 +04:00
parent 2a41811c83
commit 4520ee465d
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ namespace LuaUtil
return load(rootNodes, lua);
}
sol::object YamlLoader::load(const std::vector<YAML::Node> rootNodes, const sol::state_view& lua)
sol::object YamlLoader::load(const std::vector<YAML::Node>& rootNodes, const sol::state_view& lua)
{
if (rootNodes.empty())
return sol::nil;

View File

@ -30,7 +30,7 @@ namespace LuaUtil
String
};
static sol::object load(const std::vector<YAML::Node> rootNodes, const sol::state_view& lua);
static sol::object load(const std::vector<YAML::Node>& rootNodes, const sol::state_view& lua);
static sol::object getNode(const YAML::Node& node, const sol::state_view& lua, uint64_t depth);