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

@@ -153,20 +153,12 @@ ProfilePanel::~ProfilePanel ()
bool ProfilePanel::isCustomSelected()
{
if (profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")")) {
return true;
}
return false;
return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PCUSTOM") + ")");
}
bool ProfilePanel::isLastSavedSelected()
{
if (profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")")) {
return true;
}
return false;
return profiles->getCurrentLabel() == Glib::ustring ("(" + M("PROFILEPANEL_PLASTSAVED") + ")");
}
Gtk::TreeIter ProfilePanel::getCustomRow()