From: Wolfgang Bumiller Date: Sun, 23 Jul 2017 08:10:15 +0000 (+0200) Subject: cleanup: 'move of a temporary object prevents copy elision' X-Git-Tag: xonotic-v0.8.5~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ad5f18ef1d40d447452f87fad36541333045aa9;p=xonotic%2Fgmqcc.git cleanup: 'move of a temporary object prevents copy elision' --- diff --git a/parser.cpp b/parser.cpp index 1e15ba3..25e95f2 100644 --- a/parser.cpp +++ b/parser.cpp @@ -5516,7 +5516,7 @@ static bool parse_variable(parser_t *parser, ast_block *localblock, bool nofield defname.erase(prefix_len); for (i = 0; i < 3; ++i) { util_htset(parser->variables.back(), me[i]->m_name.c_str(), (void*)(me[i])); - me[i]->m_name = move(defname + me[i]->m_name); + me[i]->m_name = defname + me[i]->m_name; parser->globals.push_back(me[i]); } }