Refactoring on the VariableValue class

This commit is contained in:
Felipe Zimmerle
2019-06-14 10:13:54 -03:00
parent cbd15ec138
commit 47dd9c5df4
16 changed files with 147 additions and 112 deletions

View File

@@ -60,7 +60,7 @@ std::string RunTimeString::evaluate(Transaction *t, Rule *r) {
std::vector<const VariableValue *> l;
z->m_var->evaluate(t, r, &l);
if (l.size() > 0) {
s.append(l[0]->m_value);
s.append(l[0]->getValue());
}
for (auto &i : l) {
delete i;