Skip to content

Commit

Permalink
Implement sonarcloud suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduar-hte committed Apr 28, 2024
1 parent e769f17 commit 07aec07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ReadingLogsViaRuleMessage {
m_rules(rules)
{ }

int process() {
int process() const {
pthread_t threads[NUM_THREADS];
int i;
struct data_ms dms;
Expand Down
2 changes: 1 addition & 1 deletion src/rule_with_operator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool RuleWithOperator::executeOperatorAt(Transaction *trans, const std::string &

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

0 comments on commit 07aec07

Please sign in to comment.