mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Source: Use cmValue::IsOn and IsOff
Speed up a bit by calling members directly.
This commit is contained in:
@@ -54,7 +54,7 @@ cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
|
||||
switch (state->GetCacheEntryType(key)) {
|
||||
case cmStateEnums::BOOL: {
|
||||
auto bw = cm::make_unique<cmCursesBoolWidget>(this->EntryWidth, 1, 1, 1);
|
||||
bw->SetValueAsBool(cmIsOn(*value));
|
||||
bw->SetValueAsBool(value.IsOn());
|
||||
this->Entry = std::move(bw);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user