Cosmetics: fix some cppcheck complains

This commit is contained in:
Felipe Zimmerle
2020-04-29 10:19:49 -03:00
parent 14a60ef46c
commit 01e2fe4f82
19 changed files with 155 additions and 53 deletions

View File

@@ -69,12 +69,12 @@ bool Rx::evaluate(Transaction *transaction, RuleWithActions *rule,
logOffset(ruleMessage, capture.m_offset, capture.m_length);
}
if (m_string->m_containsMacro) {
delete re;
if (!captures.empty()) {
return true;
}
if (captures.size() > 0) {
return true;
if (m_string->m_containsMacro) {
delete re;
}
return false;