Apply readability-simplify-boolean-expr

This commit is contained in:
Flössie
2016-10-12 20:01:30 +02:00
parent 19de9d1efa
commit aeaff29ac0
18 changed files with 53 additions and 85 deletions

View File

@@ -1890,18 +1890,10 @@ void EditorPanel::histogramChanged (LUTu & histRed, LUTu & histGreen, LUTu & his
bool EditorPanel::CheckSidePanelsVisibility()
{
if (tbTopPanel_1) {
if(tbTopPanel_1->get_active() == false && tbRightPanel_1->get_active() == false && hidehp->get_active() == false) {
return false;
}
return true;
return !(!tbTopPanel_1->get_active() && !tbRightPanel_1->get_active() && !hidehp->get_active());
}
if(tbRightPanel_1->get_active() == false && hidehp->get_active() == false) {
return false;
}
return true;
return !(!tbRightPanel_1->get_active() && !hidehp->get_active());
}
void EditorPanel::toggleSidePanels()
{
@@ -1918,7 +1910,7 @@ void EditorPanel::toggleSidePanels()
tbRightPanel_1->set_active (!bAllSidePanelsVisible);
hidehp->set_active (!bAllSidePanelsVisible);
if (bAllSidePanelsVisible == false) {
if (!bAllSidePanelsVisible) {
tbShowHideSidePanels->set_image (*iShowHideSidePanels);
} else {
tbShowHideSidePanels->set_image (*iShowHideSidePanels_exit);