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:
parent
2a41811c83
commit
4520ee465d
@ -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 New Issue
Block a user