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
parent 21a63b296a
commit d991461c43
16 changed files with 116 additions and 85 deletions

View File

@@ -41,7 +41,7 @@ class Session_DictElement : public Variable {
void evaluate(Transaction *t,
std::vector<std::shared_ptr<const VariableValue>> *l) override {
t->m_collections.m_session_collection->resolveMultiMatches(
m_name, t->m_collections.m_session_collection_key,
*getVariableKey(), t->m_collections.m_session_collection_key,
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
}
@@ -84,7 +84,7 @@ class Session_DynamicElement : public VariableWithRunTimeString {
public:
explicit Session_DynamicElement(std::unique_ptr<RunTimeString> dictElement)
: VariableWithRunTimeString(
"SESSION:dynamic",
"SESSION",
std::move(dictElement)
)
{ }