summaryrefslogtreecommitdiff
path: root/src/squelch/rule.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/squelch/rule.cc')
-rw-r--r--src/squelch/rule.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/squelch/rule.cc b/src/squelch/rule.cc
index 50a771ae..e35b3ce1 100644
--- a/src/squelch/rule.cc
+++ b/src/squelch/rule.cc
@@ -25,15 +25,14 @@ EnumStringMap<action_type> &action_mapping()
return *m;
}
-void Rule::set_name(const char *new_name)
+void Rule::set_name(std::string const &new_name)
{
- assert(new_name != nullptr);
m_name = new_name;
}
-const char *Rule::get_name() const
+std::string Rule::get_name() const
{
- return m_name.c_str();
+ return m_name;
}
std::shared_ptr<Condition> Rule::get_condition() const