Make function argument const pointer

This commit is contained in:
Ervin Hegedus 2025-03-12 22:26:29 +01:00
parent c3c2c6f280
commit 42280d213d
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@ class RulesExceptions {
bool contains(int a);
bool merge(RulesExceptions *from);
bool loadRemoveRuleByMsg(const std::string &msg, std::string *error);
bool loadRemoveRuleByTag(const std::string &msg, std::string *error);
bool loadRemoveRuleByMsg(const std::string &msg, const std::string *error);
bool loadRemoveRuleByTag(const std::string &msg, const std::string *error);
bool loadUpdateTargetByMsg(const std::string &msg,
std::unique_ptr<std::vector<std::unique_ptr<variables::Variable> > > v,

View File

@ -58,7 +58,7 @@ bool RulesExceptions::loadUpdateActionById(double id,
bool RulesExceptions::loadRemoveRuleByMsg(const std::string &msg,
std::string *error) {
const std::string *error) {
m_remove_rule_by_msg.push_back(msg);
return true;
@ -66,7 +66,7 @@ bool RulesExceptions::loadRemoveRuleByMsg(const std::string &msg,
bool RulesExceptions::loadRemoveRuleByTag(const std::string &msg,
std::string *error) {
const std::string *error) {
m_remove_rule_by_tag.push_back(msg);
return true;