mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 04:02:03 -06:00
QCMakeCacheView: simplify boolean expression
This commit is contained in:
@@ -95,10 +95,7 @@ protected:
|
|||||||
// if there are no children
|
// if there are no children
|
||||||
if (!m->hasChildren(idx)) {
|
if (!m->hasChildren(idx)) {
|
||||||
bool adv = m->data(idx, QCMakeCacheModel::AdvancedRole).toBool();
|
bool adv = m->data(idx, QCMakeCacheModel::AdvancedRole).toBool();
|
||||||
if (!adv || (adv && this->ShowAdvanced)) {
|
return !adv || this->ShowAdvanced;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check children
|
// check children
|
||||||
|
|||||||
Reference in New Issue
Block a user