mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:15:38 +00:00
Do not copy vector
This commit is contained in:
parent
2a41811c83
commit
4520ee465d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue