cppcheck: make static analysis more pedantic

This commit is contained in:
Felipe Zimmerle
2020-01-17 11:41:05 -03:00
parent cd9b8aa93b
commit 4f13fecbaf
23 changed files with 58 additions and 42 deletions

View File

@@ -51,7 +51,7 @@ using variables::Variable;
using actions::transformations::None;
Rule::Rule(std::string marker)
Rule::Rule(const std::string &marker)
: m_accuracy(0),
m_actionsRuntimePos(),
m_actionsRuntimePre(),
@@ -303,7 +303,7 @@ void Rule::executeActionsIndependentOfChainedRuleResult(Transaction *trans,
}
bool Rule::executeOperatorAt(Transaction *trans, std::string key,
bool Rule::executeOperatorAt(Transaction *trans, const std::string &key,
std::string value, std::shared_ptr<RuleMessage> ruleMessage) {
#if MSC_EXEC_CLOCK_ENABLED
clock_t begin = clock();