Skip to content

Commit 869e369

Browse files
committed
Implement sonarcloud suggestions
1 parent 95ce3a7 commit 869e369

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/reading_logs_via_rule_message/reading_logs_via_rule_message.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ReadingLogsViaRuleMessage {
124124
m_rules(rules)
125125
{ }
126126

127-
int process() {
127+
int process() const {
128128
pthread_t threads[NUM_THREADS];
129129
int i;
130130
struct data_ms dms;

src/rule_with_operator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool RuleWithOperator::executeOperatorAt(Transaction *trans, const std::string &
133133

134134
void RuleWithOperator::getVariablesExceptions(Transaction *t,
135135
variables::Variables *exclusion, variables::Variables *addition) {
136-
for (auto &a : t->m_rules->m_exceptions.m_variable_update_target_by_tag) { // cppcheck-suppress ctunullpointer
136+
for (const auto &a : t->m_rules->m_exceptions.m_variable_update_target_by_tag) { // cppcheck-suppress ctunullpointer
137137
if (containsTag(*a.first.get(), t) == false) {
138138
continue;
139139
}

0 commit comments

Comments
 (0)