mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-21 03:16:40 +03:00
replace push_back by emplace_back where possible
This commit is contained in:
@@ -113,7 +113,7 @@ void dumpGraph(const char *filename, const LitGraph &lg) {
|
||||
fout << "[label=\"SINK\"];";
|
||||
} else {
|
||||
ue2_literal s;
|
||||
s.push_back(lg[v].c);
|
||||
s.emplace_back(lg[v].c);
|
||||
fout << "[label=\"" << dumpString(s) << "\"];";
|
||||
}
|
||||
fout << endl;
|
||||
@@ -558,12 +558,12 @@ void findMinCut(LitGraph &lg, vector<LitEdge> &cutset) {
|
||||
|
||||
if (ucolor != small_color::white && vcolor == small_color::white) {
|
||||
assert(v != lg.sink);
|
||||
white_cut.push_back(e);
|
||||
white_cut.emplace_back(e);
|
||||
white_flow += lg[e].score;
|
||||
}
|
||||
if (ucolor == small_color::black && vcolor != small_color::black) {
|
||||
assert(v != lg.sink);
|
||||
black_cut.push_back(e);
|
||||
black_cut.emplace_back(e);
|
||||
black_flow += lg[e].score;
|
||||
}
|
||||
}
|
||||
@@ -657,7 +657,7 @@ u64a sanitizeAndCompressAndScore(set<ue2_literal> &lits) {
|
||||
continue;
|
||||
dont_explode:
|
||||
make_nocase(&s);
|
||||
replacements.push_back(s);
|
||||
replacements.emplace_back(s);
|
||||
}
|
||||
|
||||
insert(&lits, replacements);
|
||||
|
||||
Reference in New Issue
Block a user