mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
cleanup: 'move of a temporary object prevents copy elision'
This commit is contained in:
parent
047ecd426f
commit
6ad5f18ef1
1 changed files with 1 additions and 1 deletions
|
@ -5516,7 +5516,7 @@ static bool parse_variable(parser_t *parser, ast_block *localblock, bool nofield
|
||||||
defname.erase(prefix_len);
|
defname.erase(prefix_len);
|
||||||
for (i = 0; i < 3; ++i) {
|
for (i = 0; i < 3; ++i) {
|
||||||
util_htset(parser->variables.back(), me[i]->m_name.c_str(), (void*)(me[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]);
|
parser->globals.push_back(me[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue