mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-09-22 18:29:37 +00:00
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;
|
athena::io::YAMLDocReader reader;
|
||||||
yaml_parser_set_input_string(reader.getParser(), yamlSource, yamlLength);
|
yaml_parser_set_input_string(reader.getParser(), yamlSource, yamlLength);
|
||||||
reader.parse(nullptr);
|
reader.parse(nullptr);
|
||||||
m_rootNode = std::move(reader.releaseRootNode());
|
m_rootNode = reader.releaseRootNode();
|
||||||
if (m_rootNode)
|
if (m_rootNode)
|
||||||
{
|
{
|
||||||
m_langNode = m_rootNode->findMapChild(name.c_str());
|
m_langNode = m_rootNode->findMapChild(name.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user