Permalink
Browse files

Style fixes only, no functional changes intended

including converting a while loop into a for loop.
  • Loading branch information...
jscipione committed Dec 7, 2012
1 parent 690a7f3 commit 715c56d45435a373b9f581960fd352506a348922
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/apps/terminal/AppearPrefView.cpp
  2. +1 −1 src/apps/terminal/Colors.cpp
@@ -291,6 +291,7 @@ AppearancePrefView::MessageReceived(BMessage* msg)
_EnableCustomColors(true);
else
_EnableCustomColors(false);
+
_ChangeColorScheme(newScheme);
modified = true;
}
@@ -393,14 +394,13 @@ AppearancePrefView::_SetCurrentColorScheme(BMenuField* field)
const char* currentSchemeName = NULL;
- color_scheme** schemes
- = const_cast<color_scheme**>(gPredefinedColorSchemes);
- while (*schemes) {
+ for (color_scheme** schemes
+ = const_cast<color_scheme**>(gPredefinedColorSchemes);
+ *schemes != NULL; schemes++) {
if (gCustomColorScheme == **schemes) {
currentSchemeName = (*schemes)->name;
break;
}
- schemes++;
}
for (int32 i = 0; i < fColorSchemeField->Menu()->CountItems(); i++) {
@@ -14,7 +14,7 @@
// Standard colors
-const rgb_color kBlack= { 0, 0, 0, 255 };
+const rgb_color kBlack = { 0, 0, 0, 255 };
const rgb_color kGreen = { 0, 255, 0, 255 };
const rgb_color kWhite = { 255, 255, 255, 255 };
const rgb_color kYellow = { 255, 255, 0, 255 };

0 comments on commit 715c56d

Please sign in to comment.