]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
cleanup: 'move of a temporary object prevents copy elision'
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 23 Jul 2017 08:10:15 +0000 (10:10 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 23 Jul 2017 08:11:31 +0000 (10:11 +0200)
parser.cpp

index 1e15ba3a658073efeeccb9bc1880d9ab1bd1a132..25e95f27a197565873e651e1a211da3c3931340c 100644 (file)
@@ -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]);
                         }
                     }