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/cmTest.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/cmTest.cxx')
-rw-r--r-- | Source/cmTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx index 7c9969c..8a39144 100644 --- a/Source/cmTest.cxx +++ b/Source/cmTest.cxx @@ -50,7 +50,7 @@ cmValue cmTest::GetProperty(const std::string& prop) const bool cmTest::GetPropertyAsBool(const std::string& prop) const { - return cmIsOn(this->GetProperty(prop)); + return this->GetProperty(prop).IsOn(); } void cmTest::SetProperty(const std::string& prop, cmValue value) |