More use of wxFALLTHROUGH

This commit is contained in:
Paul Cornett 2018-05-11 10:19:47 -07:00
parent 9bfa890480
commit b3d7a631c0
2 changed files with 2 additions and 1 deletions

View File

@ -216,6 +216,7 @@ void wxCheckBox::DoSet3StateValue(wxCheckBoxState state)
case wxCHK_UNCHECKED: status = Status_Unchecked; break;
case wxCHK_CHECKED: status = Status_Checked; break;
default: wxFAIL_MSG(wxT("Unknown checkbox state"));
wxFALLTHROUGH;
case wxCHK_UNDETERMINED: status = Status_3rdState; break;
}
if ( status != m_status )

View File

@ -1033,7 +1033,7 @@ bool wxStdScrollBarInputHandler::HandleMouse(wxInputConsumer *consumer,
consumer->PerformAction(wxACTION_SCROLL_THUMB_DRAG);
m_ofsMouse = GetMouseCoord(scrollbar, event) -
scrollbar->ScrollbarToPixel();
wxFALLTHROUGH;
// fall through: there is no immediate action
default: