Avoids copy on the transformation operation

This commit is contained in:
Felipe Zimmerle
2019-02-14 19:46:06 -03:00
parent 8cfb289cea
commit 9c526b3647
78 changed files with 121 additions and 87 deletions

View File

@@ -36,8 +36,9 @@ TrimRight::TrimRight(const std::string &action)
this->action_kind = 1;
}
std::string TrimRight::evaluate(std::string value,
std::string TrimRight::evaluate(const std::string &val,
Transaction *transaction) {
std::string value(val);
return *this->rtrim(&value);
}