Remove unnecessary and RVO-detrimental moves

This commit is contained in:
Jack Andersen 2016-10-02 18:38:39 -10:00
parent 0f21c8a2fc
commit 474ef07953
1 changed files with 1 additions and 1 deletions

View File

@ -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());