mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 22:54:29 +01:00
Codechange: Use emplace_back instead of push_back. (#13855)
This commit is contained in:
@@ -558,7 +558,7 @@ ParsedCommandStruct ExtractCommandString(const char *s, bool)
|
||||
|
||||
p.consuming_commands[argidx++] = ar;
|
||||
} else if (!ar->flags.Test(CmdFlag::DontCount)) { // Ignore some of them
|
||||
p.non_consuming_commands.emplace_back(CmdPair{ar, std::move(param)});
|
||||
p.non_consuming_commands.emplace_back(ar, std::move(param));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user