More use of wxFALLTHROUGH
This commit is contained in:
@@ -216,6 +216,7 @@ void wxCheckBox::DoSet3StateValue(wxCheckBoxState state)
|
|||||||
case wxCHK_UNCHECKED: status = Status_Unchecked; break;
|
case wxCHK_UNCHECKED: status = Status_Unchecked; break;
|
||||||
case wxCHK_CHECKED: status = Status_Checked; break;
|
case wxCHK_CHECKED: status = Status_Checked; break;
|
||||||
default: wxFAIL_MSG(wxT("Unknown checkbox state"));
|
default: wxFAIL_MSG(wxT("Unknown checkbox state"));
|
||||||
|
wxFALLTHROUGH;
|
||||||
case wxCHK_UNDETERMINED: status = Status_3rdState; break;
|
case wxCHK_UNDETERMINED: status = Status_3rdState; break;
|
||||||
}
|
}
|
||||||
if ( status != m_status )
|
if ( status != m_status )
|
||||||
|
@@ -1033,7 +1033,7 @@ bool wxStdScrollBarInputHandler::HandleMouse(wxInputConsumer *consumer,
|
|||||||
consumer->PerformAction(wxACTION_SCROLL_THUMB_DRAG);
|
consumer->PerformAction(wxACTION_SCROLL_THUMB_DRAG);
|
||||||
m_ofsMouse = GetMouseCoord(scrollbar, event) -
|
m_ofsMouse = GetMouseCoord(scrollbar, event) -
|
||||||
scrollbar->ScrollbarToPixel();
|
scrollbar->ScrollbarToPixel();
|
||||||
|
wxFALLTHROUGH;
|
||||||
// fall through: there is no immediate action
|
// fall through: there is no immediate action
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user