mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge pull request #3018 from akortunov/emplace
Use emplace_back instead of push_back
This commit is contained in:
commit
53f91a3aa5
66 changed files with 267 additions and 271 deletions
|
@ -637,7 +637,7 @@ namespace Compiler
|
|||
void Scanner::listKeywords (std::vector<std::string>& keywords)
|
||||
{
|
||||
for (int i=0; Compiler::sKeywords[i]; ++i)
|
||||
keywords.push_back (Compiler::sKeywords[i]);
|
||||
keywords.emplace_back(Compiler::sKeywords[i]);
|
||||
|
||||
if (mExtensions)
|
||||
mExtensions->listKeywords (keywords);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue