replace push_back by emplace_back where possible

This commit is contained in:
Konstantinos Margaritis
2021-03-26 12:39:40 +02:00
parent 1cdb7312cb
commit 3f35a2be37
92 changed files with 535 additions and 535 deletions

View File

@@ -493,7 +493,7 @@ bool removeSiblingsOfStartDotStar(NGHolder &g) {
continue;
}
DEBUG_PRINTF("removing %zu->%zu\n", g[u].index, g[v].index);
dead.push_back(e);
dead.emplace_back(e);
}
}
@@ -520,7 +520,7 @@ bool optimiseVirtualStarts(NGHolder &g) {
for (const auto &e : in_edges_range(v, g)) {
if (!is_any_start(source(e, g), g)) {
dead.push_back(e);
dead.emplace_back(e);
}
}
}