summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmConditionEvaluator.cxx5
-rw-r--r--Source/cmConditionEvaluator.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx
index 38dfca5..cec9691 100644
--- a/Source/cmConditionEvaluator.cxx
+++ b/Source/cmConditionEvaluator.cxx
@@ -222,8 +222,9 @@ cmProp cmConditionEvaluator::GetVariableOrString(
}
//=========================================================================
-bool cmConditionEvaluator::IsKeyword(cm::static_string_view keyword,
- cmExpandedCommandArgument& argument) const
+bool cmConditionEvaluator::IsKeyword(
+ cm::static_string_view keyword,
+ const cmExpandedCommandArgument& argument) const
{
if ((this->Policy54Status != cmPolicies::WARN &&
this->Policy54Status != cmPolicies::OLD) &&
diff --git a/Source/cmConditionEvaluator.h b/Source/cmConditionEvaluator.h
index a7e3ce8..d74e28b 100644
--- a/Source/cmConditionEvaluator.h
+++ b/Source/cmConditionEvaluator.h
@@ -39,7 +39,7 @@ private:
cmProp GetVariableOrString(const cmExpandedCommandArgument& argument) const;
bool IsKeyword(cm::static_string_view keyword,
- cmExpandedCommandArgument& argument) const;
+ const cmExpandedCommandArgument& argument) const;
bool GetBooleanValue(cmExpandedCommandArgument& arg) const;