mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
replace push_back by emplace_back where possible
This commit is contained in:
@@ -207,7 +207,7 @@ void succPredIntersection(const NFAVertex v, const flat_set<NFAVertex> &predSet,
|
||||
// Break out if we've reduced our intersection to [v]
|
||||
if (best->size() == 1) {
|
||||
assert(*(best->begin()) == v);
|
||||
intersection.push_back(v);
|
||||
intersection.emplace_back(v);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -256,7 +256,7 @@ void predSuccIntersection(const NFAVertex v,
|
||||
// Break out if we've reduced our intersection to [v]
|
||||
if (best->size() == 1) {
|
||||
assert(*(best->begin()) == v);
|
||||
intersection.push_back(v);
|
||||
intersection.emplace_back(v);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user