[clang-tidy] Replace push_back with emplace_back

Found with modernize-use-emplace

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-09-27 19:24:23 -07:00
committed by Paul Beckingham
parent a468537c1b
commit 897759e4dc
6 changed files with 21 additions and 21 deletions

View File

@@ -122,7 +122,7 @@ void Eval::evaluateInfixExpression (const std::string& e, Variant& v) const
std::string token;
Lexer::Type type;
while (l.token (token, type))
tokens.push_back (std::pair <std::string, Lexer::Type> (token, type));
tokens.emplace_back(token, type);
// Parse for syntax checking and operator replacement.
if (_debug)
@@ -149,7 +149,7 @@ void Eval::evaluatePostfixExpression (const std::string& e, Variant& v) const
std::string token;
Lexer::Type type;
while (l.token (token, type))
tokens.push_back (std::pair <std::string, Lexer::Type> (token, type));
tokens.emplace_back(token, type);
if (_debug)
Context::getContext ().debug ("FILTER Postfix " + dump (tokens));