Constify Transaction on variable resolution

This commit is contained in:
Felipe Zimmerle
2020-09-18 11:41:55 -03:00
parent 646bdd37b4
commit 3c25113a64
53 changed files with 214 additions and 229 deletions

View File

@@ -117,7 +117,7 @@ void AnchoredVariable::append(const std::string &a, size_t offset,
}
void AnchoredVariable::evaluate(VariableValues *l) {
void AnchoredVariable::evaluate(VariableValues *l) const noexcept {
if (m_name.empty()) {
return;
}
@@ -127,12 +127,12 @@ void AnchoredVariable::evaluate(VariableValues *l) {
}
std::string * AnchoredVariable::evaluate() {
const std::string *AnchoredVariable::evaluate() const noexcept {
return &m_value;
}
std::unique_ptr<std::string> AnchoredVariable::resolveFirst() {
std::unique_ptr<std::string> AnchoredVariable::resolveFirst() const noexcept {
if (m_value.empty()) {
return nullptr;
}