Replaces getKeyWithCollection with getName on VariableValue

This commit is contained in:
Felipe Zimmerle
2020-08-25 12:52:04 -03:00
parent c24cdf6313
commit 952473368a
7 changed files with 21 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ void RemoteUser::evaluate(Transaction *transaction,
}
transaction->m_variableRemoteUser.assign(std::string(base64, 0, pos));
auto var = std::make_shared<VariableValue>(&l2[0]->getKeyWithCollection(), &transaction->m_variableRemoteUser);
auto var = std::make_shared<VariableValue>(&l2[0]->getName(), &transaction->m_variableRemoteUser);
for (auto &i : l2[0]->getOrigin()) {
var->addOrigin(i);

View File

@@ -701,7 +701,7 @@ class Variables : public std::vector<Variable *> {
if (r) {
return r->m_r.searchAll(v->getKey()).size() > 0;
}
return v->getKeyWithCollection() == *m->getVariableKeyWithCollection();
return v->getName() == *m->getVariableKeyWithCollection();
}) != end();
};