Use wxFALLTHROUGH
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user