Skip to content

Commit

Permalink
Fix SonarCloud issue: Make this variable a const reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
gberkes committed Apr 26, 2024
1 parent 1a2bc0f commit c50e984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule_with_actions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void RuleWithActions::executeActionsAfterFullMatch(Transaction *trans,
bool containsBlock, std::shared_ptr<RuleMessage> ruleMessage) {
bool disruptiveAlreadyExecuted = false;

for (auto &a : trans->m_rules->m_defaultActions[getPhase()]) { // cppcheck_suppressions.txt:55
for (const auto &a : trans->m_rules->m_defaultActions[getPhase()]) { // cppcheck_suppressions.txt:55
if (a.get()->action_kind != actions::Action::RunTimeOnlyIfMatchKind) {
continue;
}
Expand Down

0 comments on commit c50e984

Please sign in to comment.