Use wxFALLTHROUGH

This commit is contained in:
Paul Cornett
2017-10-17 09:21:45 -07:00
parent 4ec80a35f9
commit ed8a541463
5 changed files with 6 additions and 2 deletions

View File

@@ -432,6 +432,7 @@ void ListboxWidgetsPage::CreateLbox()
{
default:
wxFAIL_MSG( wxT("unexpected radio box selection") );
wxFALLTHROUGH;
case LboxSel_Single: flags |= wxLB_SINGLE; break;
case LboxSel_Extended: flags |= wxLB_EXTENDED; break;

View File

@@ -698,6 +698,7 @@ void TextWidgetsPage::CreateText()
{
default:
wxFAIL_MSG( wxT("unexpected wrap style radio box selection") );
wxFALLTHROUGH;
case WrapStyle_None:
flags |= wxTE_DONTWRAP; // same as wxHSCROLL

View File

@@ -120,7 +120,7 @@ static wxString GTKProcessMnemonics(const wxString& label, MnemonicsFlag flag)
labelGTK += wxT("_-");
break;
}
//else: fall through
wxFALLTHROUGH;
default:
if ( flag != MNEMONICS_REMOVE )
@@ -137,7 +137,7 @@ static wxString GTKProcessMnemonics(const wxString& label, MnemonicsFlag flag)
labelGTK += wxT("__");
break;
}
//else: fall through
wxFALLTHROUGH;
default:
labelGTK += ch;

View File

@@ -155,6 +155,7 @@ static gboolean gtk_frame_focus_in_callback( GtkWidget *widget,
default:
g_source_remove( win->m_urgency_hint );
// no break, fallthrough to remove hint too
wxFALLTHROUGH;
case -1:
gtk_window_set_urgency_hint(GTK_WINDOW(widget), false);
win->m_urgency_hint = -2;

View File

@@ -872,6 +872,7 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event)
case wxDragError:
wxLogError(wxT("An error occurred during drag and drop operation"));
wxFALLTHROUGH;
case wxDragNone:
case wxDragCancel:
Refresh(); // This is needed in wxMSW, otherwise resetting the position doesn't 'take'