summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_Button.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-02-26 21:10:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-02-26 21:10:46 +0000
commit86d292b6c147c72802854433da6bd20db73da44c (patch)
treea4bf88f897eab691bdc401ba5508adc137276e30 /src/Fl_Menu_Button.cxx
parent2668a87af7bbec1bf8a2ae971748f65885fe6fcf (diff)
Adding FALLTHROUGH label to a buch of case fallthroughs in order to make lint happy. STR #2285
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_Button.cxx')
-rw-r--r--src/Fl_Menu_Button.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx
index 0ae69de51..438383115 100644
--- a/src/Fl_Menu_Button.cxx
+++ b/src/Fl_Menu_Button.cxx
@@ -73,7 +73,7 @@ const Fl_Menu_Item* Fl_Menu_Button::popup() {
int Fl_Menu_Button::handle(int e) {
if (!menu() || !menu()->text) return 0;
switch (e) {
- case FL_ENTER:
+ case FL_ENTER: /* FALLTHROUGH */
case FL_LEAVE:
return (box() && !type()) ? 1 : 0;
case FL_PUSH:
@@ -95,7 +95,7 @@ int Fl_Menu_Button::handle(int e) {
case FL_SHORTCUT:
if (Fl_Widget::test_shortcut()) {popup(); return 1;}
return test_shortcut() != 0;
- case FL_FOCUS:
+ case FL_FOCUS: /* FALLTHROUGH */
case FL_UNFOCUS:
if (box() && Fl::visible_focus()) {
redraw();