Change one parm from pass-by-value to reference-to-const

This commit is contained in:
Martin Vierula 2022-02-09 13:02:06 -08:00
parent 378e31c79b
commit 5106307cc6
No known key found for this signature in database
GPG Key ID: F2FC4E45883BCBA4
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class RuleWithOperator : public RuleWithActions {
variables::Variables *eclusion, Transaction *trans);
bool executeOperatorAt(Transaction *trasn, const std::string &key,
std::string value, std::shared_ptr<RuleMessage> rm);
const std::string &value, std::shared_ptr<RuleMessage> rm);
static void updateMatchedVars(Transaction *trasn, const std::string &key,
const std::string &value);

View File

@ -101,7 +101,7 @@ void RuleWithOperator::cleanMatchedVars(Transaction *trans) {
bool RuleWithOperator::executeOperatorAt(Transaction *trans, const std::string &key,
std::string value, std::shared_ptr<RuleMessage> ruleMessage) {
const std::string &value, std::shared_ptr<RuleMessage> ruleMessage) {
#if MSC_EXEC_CLOCK_ENABLED
clock_t begin = clock();
clock_t end;