Author: greg.ercolano
Date: 2013-03-29 11:26:36 -0700 (Fri, 29 Mar 2013)
New Revision: 9855
Log:
Code readability -- No logic was changed.

    o Adjusted /*FALLTHROUGH*/ comments for clarity
    o Added /* NOTREACHED */ comment for clarity
    o Brace cosmetics



Modified:
   branches/branch-1.3/src/Fl_Button.cxx

Modified: branches/branch-1.3/src/Fl_Button.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Button.cxx       2013-03-29 04:36:51 UTC (rev 
9854)
+++ branches/branch-1.3/src/Fl_Button.cxx       2013-03-29 18:26:36 UTC (rev 
9855)
@@ -89,12 +89,12 @@
     return 1;
   case FL_PUSH:
     if (Fl::visible_focus() && handle(FL_FOCUS)) Fl::focus(this);
+    /* FALLTHROUGH */
   case FL_DRAG:
     if (Fl::event_inside(this)) {
       if (type() == FL_RADIO_BUTTON) newval = 1;
       else newval = !oldval;
-    } else
-    {
+    } else {
       clear_changed();
       newval = oldval;
     }
@@ -129,7 +129,7 @@
          Fl::test_shortcut(shortcut()) : test_shortcut())) return 0;    
     if (Fl::visible_focus() && handle(FL_FOCUS)) Fl::focus(this);
     goto triggered_by_keyboard;
-  case FL_FOCUS : /* FALLTHROUGH */
+  case FL_FOCUS :
   case FL_UNFOCUS :
     if (Fl::visible_focus()) {
       if (box() == FL_NO_BOX) {
@@ -142,6 +142,7 @@
       } else redraw();
       return 1;
     } else return 0;
+    /* NOTREACHED */
   case FL_KEYBOARD :
     if (Fl::focus() == this && Fl::event_key() == ' ' &&
         !(Fl::event_state() & (FL_SHIFT | FL_CTRL | FL_ALT | FL_META))) {

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to