mirror of https://github.com/AxioDL/metaforce.git
Remove unnecessary and RVO-detrimental moves
This commit is contained in:
parent
0f21c8a2fc
commit
474ef07953
|
@ -12,7 +12,7 @@ Locale::Locale(const std::string& name, const std::string& fullName,
|
|||
athena::io::YAMLDocReader reader;
|
||||
yaml_parser_set_input_string(reader.getParser(), yamlSource, yamlLength);
|
||||
reader.parse(nullptr);
|
||||
m_rootNode = std::move(reader.releaseRootNode());
|
||||
m_rootNode = reader.releaseRootNode();
|
||||
if (m_rootNode)
|
||||
{
|
||||
m_langNode = m_rootNode->findMapChild(name.c_str());
|
||||
|
|
Loading…
Reference in New Issue