mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-19 02:30:35 +03:00
replace push_back by emplace_back where possible
This commit is contained in:
@@ -407,7 +407,7 @@ void appendLiteral(NGHolder &h, const ue2_literal &s) {
|
||||
vector<NFAVertex> tail;
|
||||
assert(in_degree(h.acceptEod, h) == 1);
|
||||
for (auto v : inv_adjacent_vertices_range(h.accept, h)) {
|
||||
tail.push_back(v);
|
||||
tail.emplace_back(v);
|
||||
}
|
||||
assert(!tail.empty());
|
||||
|
||||
@@ -422,7 +422,7 @@ void appendLiteral(NGHolder &h, const ue2_literal &s) {
|
||||
add_edge(u, v, h);
|
||||
}
|
||||
tail.clear();
|
||||
tail.push_back(v);
|
||||
tail.emplace_back(v);
|
||||
}
|
||||
|
||||
for (auto v : tail) {
|
||||
|
||||
Reference in New Issue
Block a user