From 5d3b5bef11bc29bb00a14103433fea81e4dcc340 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 8 Sep 2016 23:35:59 +0200 Subject: [PATCH] QCMakeCacheView: simplify boolean expression --- Source/QtDialog/QCMakeCacheView.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index ec7918b3f..ed11f7b68 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