Skip to content

Commit c9f2f35

Browse files
committed
Add const to parameter
with changes from e9bf9ad nothing is modified anymore
1 parent 72b46c5 commit c9f2f35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

headers/modsecurity/rules_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RulesExceptions {
5151
bool addRange(int a, int b);
5252
bool addNumber(int a);
5353
bool contains(int a);
54-
bool merge(RulesExceptions *from);
54+
bool merge(const RulesExceptions *from);
5555

5656
bool loadRemoveRuleByMsg(const std::string &msg, const std::string *error);
5757
bool loadRemoveRuleByTag(const std::string &msg, const std::string *error);

src/rules_exceptions.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ bool RulesExceptions::contains(int a) {
205205
}
206206

207207

208-
bool RulesExceptions::merge(RulesExceptions *from) {
208+
bool RulesExceptions::merge(const RulesExceptions *from) {
209209
for (int a : from->m_numbers) {
210210
bool ret = addNumber(a);
211211
if (ret == false) {

0 commit comments

Comments
 (0)