Refactor: Set const to cmConditionEvaluator::IsKeyword parameters

This commit is contained in:
Alex Turbov
2021-07-27 05:33:53 +03:00
committed by Brad King
parent 2b916606c5
commit 17af3baddd
2 changed files with 4 additions and 3 deletions

View File

@@ -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) &&

View File

@@ -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;