mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-15 17:02:14 +03:00
replace push_back by emplace_back where possible
This commit is contained in:
@@ -353,7 +353,7 @@ void findMoreLiteralMasks(RoseBuildImpl &build) {
|
||||
continue;
|
||||
}
|
||||
|
||||
candidates.push_back(id);
|
||||
candidates.emplace_back(id);
|
||||
}
|
||||
|
||||
for (const u32 &id : candidates) {
|
||||
@@ -827,7 +827,7 @@ MatcherProto makeMatcherProto(const RoseBuildImpl &build,
|
||||
}
|
||||
}
|
||||
|
||||
used_lit_ids.push_back(id);
|
||||
used_lit_ids.emplace_back(id);
|
||||
}
|
||||
|
||||
if (used_lit_ids.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user