mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Make function argument const pointer
This commit is contained in:
parent
c3c2c6f280
commit
42280d213d
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user