mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Constify Transaction on variable resolution
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user