Do not copy vector

fix-osga-rotate-wildly
Andrei Kortunov 10 months ago
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…
Cancel
Save