From 17af3baddd7b7056114748f16e63b8de6b3f67e8 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Tue, 27 Jul 2021 05:33:53 +0300 Subject: Refactor: Set `const` to `cmConditionEvaluator::IsKeyword` parameters --- Source/cmConditionEvaluator.cxx | 5 +++-- Source/cmConditionEvaluator.h | 2 +- 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; -- cgit v0.12