Using shared_ptr instead of unique_ptr on rules exceptions

This commit is contained in:
Felipe Zimmerle
2018-10-19 23:26:18 -03:00
parent e63344c3dc
commit fa5f3784f2
4 changed files with 24 additions and 17 deletions

View File

@@ -683,6 +683,9 @@ bool Rule::evaluate(Transaction *trans,
for (auto &var : vars) {
std::vector<const VariableValue *> e;
if (!var) {
continue;
}
var->evaluate(trans, this, &e);
for (const VariableValue *v : e) {
const std::string &value = v->m_value;