Makes matchedvars inline

This commit is contained in:
Felipe Zimmerle 2018-10-10 23:49:26 -03:00
parent b58018e778
commit a5a40a71a9
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 6 additions and 6 deletions

View File

@ -91,9 +91,9 @@ class Rule {
std::string value, std::shared_ptr<RuleMessage> rm);
void executeActionsIndependentOfChainedRuleResult(Transaction *trasn,
bool *b, std::shared_ptr<RuleMessage> ruleMessage);
void updateMatchedVars(Transaction *trasn, std::string key,
std::string value);
void cleanMatchedVars(Transaction *trasn);
inline void updateMatchedVars(Transaction *trasn, const std::string &key,
const std::string &value);
inline void cleanMatchedVars(Transaction *trasn);
std::vector<actions::Action *> getActionsByName(const std::string& name,
Transaction *t);

View File

@ -241,8 +241,8 @@ void Rule::cleanUpActions() {
}
void Rule::updateMatchedVars(Transaction *trans, std::string key,
std::string value) {
inline void Rule::updateMatchedVars(Transaction *trans, const std::string &key,
const std::string &value) {
#ifndef NO_LOGS
trans->debug(9, "Matched vars updated.");
#endif
@ -254,7 +254,7 @@ void Rule::updateMatchedVars(Transaction *trans, std::string key,
}
void Rule::cleanMatchedVars(Transaction *trans) {
inline void Rule::cleanMatchedVars(Transaction *trans) {
#ifndef NO_LOGS
trans->debug(9, "Matched vars cleaned.");
#endif