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

@@ -57,7 +57,7 @@ ComponentAlternation::ComponentAlternation(const ComponentAlternation &other)
: Component(other) {
for (const auto &c : other.children) {
assert(c);
children.push_back(unique_ptr<Component>(c->clone()));
children.emplace_back(unique_ptr<Component>(c->clone()));
}
}
@@ -103,7 +103,7 @@ void ComponentAlternation::accept(ConstComponentVisitor &v) const {
}
void ComponentAlternation::append(unique_ptr<Component> component) {
children.push_back(move(component));
children.emplace_back(move(component));
}
vector<PositionInfo> ComponentAlternation::first() const {