Skip to content

Commit 2539f80

Browse files
committed
Fix const correctness warning
1 parent 897181e commit 2539f80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

headers/modsecurity/rule_with_actions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class RuleWithActions : public Rule {
8080

8181
std::vector<actions::Action *> getActionsByName(const std::string& name,
8282
const Transaction *t);
83-
bool containsTag(const std::string& name, Transaction *t);
83+
bool containsTag(const std::string& name, Transaction *t) const;
8484
bool containsMsg(const std::string& name, Transaction *t);
8585

8686
inline bool isChained() const { return m_isChained == true; }

src/rule_with_actions.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void RuleWithActions::executeTransformations(
441441
}
442442

443443

444-
bool RuleWithActions::containsTag(const std::string& name, Transaction *t) {
444+
bool RuleWithActions::containsTag(const std::string& name, Transaction *t) const {
445445
for (const auto &tag : m_actionsTag) {
446446
if (tag != NULL && tag->getName(t) == name) {
447447
return true;

0 commit comments

Comments
 (0)