summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-08 21:35:59 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-08 21:35:59 (GMT)
commit5d3b5bef11bc29bb00a14103433fea81e4dcc340 (patch)
tree1b90b38fd61873aa0be76a7e5355f7eb5694e6bd /Source
parentad42eb33b61ad262315bfa087dc7f4f0ddbca5fe (diff)
downloadCMake-5d3b5bef11bc29bb00a14103433fea81e4dcc340.zip
CMake-5d3b5bef11bc29bb00a14103433fea81e4dcc340.tar.gz
CMake-5d3b5bef11bc29bb00a14103433fea81e4dcc340.tar.bz2
QCMakeCacheView: simplify boolean expression
Diffstat (limited to 'Source')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index ec7918b..ed11f7b 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/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