From 6ad5f18ef1d40d447452f87fad36541333045aa9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 23 Jul 2017 10:10:15 +0200 Subject: [PATCH] cleanup: 'move of a temporary object prevents copy elision' --- parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }