[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:
committed by
Paul Beckingham
parent
a468537c1b
commit
897759e4dc
@@ -533,7 +533,7 @@ std::vector <std::string>& Hooks::buildHookScriptArgs (std::vector <std::string>
|
||||
Variant v;
|
||||
|
||||
// Hooks API version.
|
||||
args.push_back ("api:2");
|
||||
args.emplace_back("api:2");
|
||||
|
||||
// Command line Taskwarrior was called with.
|
||||
getDOM ("context.args", v);
|
||||
|
||||
Reference in New Issue
Block a user