Having RunTimeString in a better shape

This is an effort towards better understanding the issues
reported on #2376
This commit is contained in:
Felipe Zimmerle
2020-08-20 14:16:26 -03:00
committed by Felipe Zimmerle
parent d3ba2318d6
commit bff82cd80d
5 changed files with 121 additions and 72 deletions

View File

@@ -122,7 +122,7 @@ bool Operator::evaluate(Transaction *transaction,
Operator *Operator::instantiate(std::string op, std::string param_str) {
std::string op_ = utils::string::tolower(op);
std::unique_ptr<RunTimeString> param(new RunTimeString());
param->appendText(param_str);
param->append(param_str);
IF_MATCH(beginswith) { return new BeginsWith(std::move(param)); }
IF_MATCH(contains) { return new Contains(std::move(param)); }