[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

@@ -79,7 +79,7 @@ void sort_projects (
// if parent does not exist yet: insert into sorted view
if (parent_pos == sorted.end ())
sorted.push_back (std::make_pair (parent, 1));
sorted.emplace_back (parent, 1);
}
// insert new element below latest parent
@@ -88,7 +88,7 @@ void sort_projects (
else
{
// if has no parents: simply push to end of list
sorted.push_back (project);
sorted.emplace_back(project);
}
}
}