Browse Source

QCMakeCacheView: simplify boolean expression

Daniel Pfeifer 9 years ago
parent
commit
5d3b5bef11
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Source/QtDialog/QCMakeCacheView.cxx

+ 1 - 4
Source/QtDialog/QCMakeCacheView.cxx

@@ -95,10 +95,7 @@ protected:
     // if there are no children
     if (!m->hasChildren(idx)) {
       bool adv = m->data(idx, QCMakeCacheModel::AdvancedRole).toBool();
-      if (!adv || (adv && this->ShowAdvanced)) {
-        return true;
-      }
-      return false;
+      return !adv || this->ShowAdvanced;
     }
 
     // check children