summaryrefslogtreecommitdiff
path: root/src/squelch
diff options
context:
space:
mode:
Diffstat (limited to 'src/squelch')
-rw-r--r--src/squelch/automatizer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/squelch/automatizer.cc b/src/squelch/automatizer.cc
index dbf8fa03..b06367a8 100644
--- a/src/squelch/automatizer.cc
+++ b/src/squelch/automatizer.cc
@@ -207,7 +207,8 @@ void Automatizer::add_new_condition(std::function<std::shared_ptr<Condition> ()>
std::vector<std::string> Automatizer::get_rule_names() const
{
- std::vector<std::string> names(m_rules.size());
+ std::vector<std::string> names;
+ names.reserve(m_rules.size());
for (auto const &rule: m_rules)
{
names.push_back(rule->get_name());