Code cleanups

on behalf of Lebedev, see issue 1355
This commit is contained in:
Oliver Duis
2012-05-06 22:10:37 +02:00
parent 686188d6bb
commit 1483ecb47c
125 changed files with 750 additions and 747 deletions

View File

@@ -685,7 +685,7 @@ void EditorPanel::info_toggled () {
idata->getFocalLen());
expcomp = Glib::ustring(idata->expcompToString(idata->getExpComp(),true)); // maskZeroexpcomp
if (expcomp!=""){
if (!expcomp.empty()){
infoString2 = Glib::ustring::compose("%1 <span size=\"large\">%2</span><span size=\"small\">EV</span>",
infoString2,
expcomp /*Glib::ustring(idata->expcompToString(idata->getExpComp()))*/);
@@ -1339,7 +1339,7 @@ void EditorPanel::histogramChanged (LUTu & histRed, LUTu & histGreen, LUTu & his
}
bool EditorPanel::CheckSidePanelsVisibility() {
if(tbTopPanel_1->get_active()==false && tbRightPanel_1->get_active()==false && hidehp->get_active()==false)
if(!tbTopPanel_1->get_active() && !tbRightPanel_1->get_active() && !hidehp->get_active())
return false;
else
return true;
@@ -1354,7 +1354,7 @@ void EditorPanel::toggleSidePanels(){
tbTopPanel_1->set_active (!bAllSidePanelsVisible);
tbRightPanel_1->set_active (!bAllSidePanelsVisible);
hidehp->set_active (!bAllSidePanelsVisible);
if (bAllSidePanelsVisible == false)
if (!bAllSidePanelsVisible)
tbShowHideSidePanels->set_image (*iShowHideSidePanels);
else
tbShowHideSidePanels->set_image (*iShowHideSidePanels_exit);