summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2021-07-27 02:33:53 (GMT)
committerBrad King <brad.king@kitware.com>2021-08-03 14:55:46 (GMT)
commit17af3baddd7b7056114748f16e63b8de6b3f67e8 (patch)
tree6328c73f15cbb14991925a2ac5b432efac4ac73f /Source
parent2b916606c5c3f1145edd5f0464b139d03b79ae44 (diff)
downloadCMake-17af3baddd7b7056114748f16e63b8de6b3f67e8.zip
CMake-17af3baddd7b7056114748f16e63b8de6b3f67e8.tar.gz
CMake-17af3baddd7b7056114748f16e63b8de6b3f67e8.tar.bz2
Refactor: Set `const` to `cmConditionEvaluator::IsKeyword` parameters
Diffstat (limited to 'Source')
-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;