Cosmetics: Using VariableValues instead of std::vector<...>

Making the code more readable.
This commit is contained in:
Felipe Zimmerle
2020-08-24 12:57:47 -03:00
parent 6c79e716e7
commit 759fc1eabe
54 changed files with 123 additions and 119 deletions

View File

@@ -124,7 +124,7 @@ class RunTimeString {
void appendValueTo(/* const */ Transaction *transaction, std::string &v) const noexcept {
if (m_variable && transaction) {
std::vector<std::shared_ptr<const VariableValue>> l;
VariableValues l;
m_variable->evaluate(transaction, &l);
if (!l.empty()) {
v.append(l[0]->getValue());