Source: Use cmValue::IsOn and IsOff

Speed up a bit by calling members directly.
This commit is contained in:
Vitaly Stakhovsky
2024-03-17 19:00:00 -04:00
parent f440439dee
commit 1a49b439a5
42 changed files with 121 additions and 116 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ cmValue cmCacheManager::CacheEntry::GetProperty(const std::string& prop) const
bool cmCacheManager::CacheEntry::GetPropertyAsBool(
const std::string& prop) const
{
return cmIsOn(this->GetProperty(prop));
return this->GetProperty(prop).IsOn();
}
void cmCacheManager::CacheEntry::SetProperty(const std::string& prop,