diff options
author | Vitaly Stakhovsky <vvs31415@users.noreply.gitlab.com> | 2024-03-17 23:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@users.noreply.gitlab.com> | 2024-03-17 23:05:37 (GMT) |
commit | 1a49b439a548a5ccc573e85c86ef42ece1d267ae (patch) | |
tree | 5cb159207f37bb6665f8f089330bbb868c11adf4 /Source/cmConditionEvaluator.cxx | |
parent | f440439dee558273a32e4efa39e10a9ff6b479d5 (diff) | |
download | CMake-1a49b439a548a5ccc573e85c86ef42ece1d267ae.zip CMake-1a49b439a548a5ccc573e85c86ef42ece1d267ae.tar.gz CMake-1a49b439a548a5ccc573e85c86ef42ece1d267ae.tar.bz2 |
Source: Use cmValue::IsOn and IsOff
Speed up a bit by calling members directly.
Diffstat (limited to 'Source/cmConditionEvaluator.cxx')
-rw-r--r-- | Source/cmConditionEvaluator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx index eba4c57..5a2b33a 100644 --- a/Source/cmConditionEvaluator.cxx +++ b/Source/cmConditionEvaluator.cxx @@ -399,7 +399,7 @@ bool cmConditionEvaluator::GetBooleanValue( // Check definition. cmValue def = this->GetDefinitionIfUnquoted(arg); - return !cmIsOff(def); + return !def.IsOff(); } //========================================================================= @@ -416,14 +416,14 @@ bool cmConditionEvaluator::GetBooleanValueOld( return true; } cmValue def = this->GetDefinitionIfUnquoted(arg); - return !cmIsOff(def); + return !def.IsOff(); } // Old GetVariableOrNumber behavior. cmValue def = this->GetDefinitionIfUnquoted(arg); if (!def && std::atoi(arg.GetValue().c_str())) { def = cmValue(arg.GetValue()); } - return !cmIsOff(def); + return !def.IsOff(); } //========================================================================= |