Permalink
Browse files

More style fixes, return true or false directly

  • Loading branch information...
1 parent 72bf9c4 commit 5ddf877be64a8d6aa12e6f856d3b748c5ba045d4 @jscipione jscipione committed Dec 7, 2012
Showing with 10 additions and 13 deletions.
  1. +10 −13 src/apps/terminal/Colors.cpp
@@ -85,27 +85,24 @@ struct color_scheme gCustomColorScheme = {
};
const color_scheme* gPredefinedColorSchemes[] = {
- &kColorSchemeDefault,
- &kColorSchemeBlue,
- &kColorSchemeMidnight,
- &kColorSchemeProfessional,
- &kColorSchemeRetro,
- &kColorSchemeSlate,
- &gCustomColorScheme,
- NULL
+ &kColorSchemeDefault,
+ &kColorSchemeBlue,
+ &kColorSchemeMidnight,
+ &kColorSchemeProfessional,
+ &kColorSchemeRetro,
+ &kColorSchemeSlate,
+ &gCustomColorScheme,
+ NULL
};
bool
color_scheme::operator==(const color_scheme& scheme)
{
- if (text_fore_color == scheme.text_fore_color
+ return text_fore_color == scheme.text_fore_color
&& text_back_color == scheme.text_back_color
&& cursor_fore_color == scheme.cursor_fore_color
&& cursor_back_color == scheme.cursor_back_color
&& select_fore_color == scheme.select_fore_color
- && select_back_color == scheme.select_back_color)
- return true;
-
- return false;
+ && select_back_color == scheme.select_back_color;
}

0 comments on commit 5ddf877

Please sign in to comment.