Refactoring on variables::Variable

Using the references on key and collection as shared pointers
This commit is contained in:
Felipe Zimmerle
2020-08-21 19:48:05 -03:00
committed by Felipe Zimmerle
parent 6528c95765
commit d5cae10d3a
16 changed files with 116 additions and 85 deletions

View File

@@ -37,9 +37,8 @@ class WebAppId : public Variable {
void evaluate(Transaction *transaction,
std::vector<std::shared_ptr<const VariableValue>> *l) override {
const std::string name("WEBAPPID");
const std::string rname = transaction->m_rules->m_secWebAppId.m_value;
l->push_back(std::make_shared<VariableValue>(&m_name, &rname));
l->push_back(std::make_shared<VariableValue>(getVariableKeyWithCollection().get(), &rname));
}
};