Using direct variable access instead m_collections

This commit is contained in:
Felipe Zimmerle
2018-01-28 02:31:11 -03:00
parent 43bba3f942
commit 6f7fdd9493
17 changed files with 247 additions and 447 deletions

View File

@@ -105,7 +105,7 @@ bool Pm::evaluate(Transaction *transaction, Rule *rule,
}
if (capture && transaction && rc) {
transaction->m_collections.storeOrUpdateFirst("TX", "0",
transaction->m_collections.m_tx_collection->storeOrUpdateFirst("TX:0",
std::string(match));
#ifndef NO_LOGS
transaction->debug(7, "Added pm match TX.0: " + \

View File

@@ -58,8 +58,8 @@ bool Rx::evaluate(Transaction *transaction, Rule *rule,
int i = 0;
matches.reverse();
for (const SMatch& a : matches) {
transaction->m_collections.storeOrUpdateFirst("TX",
std::to_string(i), a.match);
transaction->m_collections.m_tx_collection->storeOrUpdateFirst(
"TX:" + std::to_string(i), a.match);
#ifndef NO_LOGS
transaction->debug(7, "Added regex subexpression TX." +
std::to_string(i) + ": " + a.match);