Mercurial > octave
diff libgui/graphics/Figure.cc @ 23800:2fdc65c031b5
Add break or continue statements to prevent implicit fall-through in case statements.
* Figure.cc (eventNotifyAfter): Add break to QEvent::ChildAdded and
Qevent::ChiledRemoved cases.
* load-save.cc (glob_pattern_p): Add continue statement to '\\' case.
* __init_fltk__.cc (handle): Add break to FL_MOUSEWHEEL case.
* Array.cc (nth_element): Add break to idx_vector::class_range case.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 27 Jul 2017 09:45:05 -0700 |
parents | 980f39c3ab90 |
children | 336f89b6208b |
line wrap: on
line diff
--- a/libgui/graphics/Figure.cc Thu Jul 27 09:05:05 2017 -0700 +++ b/libgui/graphics/Figure.cc Thu Jul 27 09:45:05 2017 -0700 @@ -766,6 +766,7 @@ enableMouseTracking (); } + break; case QEvent::ChildRemoved: if (dynamic_cast<QChildEvent *> (xevent)->child @@ -774,6 +775,7 @@ gh_manager::auto_lock lock; update (figure::properties::ID_TOOLBAR); } + break; default: break;