adding wxFALLTHROUGH where until now we had comments, allows for code-analysis support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,7 +46,7 @@ CGEventType CGEventTypeForMouseButton(int button, bool isDown)
|
||||
// want to check for invalid parameters so assert first
|
||||
default:
|
||||
wxFAIL_MSG("Unsupported button passed in.");
|
||||
// fall back to the only known remaining case
|
||||
wxFALLTHROUGH;// fall back to the only known remaining case
|
||||
|
||||
case wxMOUSE_BTN_MIDDLE:
|
||||
return isDown ? kCGEventOtherMouseDown : kCGEventOtherMouseUp;
|
||||
@@ -69,7 +69,7 @@ CGEventType CGEventTypeForMouseDrag(int button)
|
||||
// want to check for invalid parameters so assert first
|
||||
default:
|
||||
wxFAIL_MSG("Unsupported button passed in.");
|
||||
// fall back to the only known remaining case
|
||||
wxFALLTHROUGH;// fall back to the only known remaining case
|
||||
|
||||
case wxMOUSE_BTN_MIDDLE:
|
||||
return kCGEventOtherMouseDragged;
|
||||
@@ -92,7 +92,7 @@ CGMouseButton CGButtonForMouseButton(int button)
|
||||
// want to check for invalid parameters so assert first
|
||||
default:
|
||||
wxFAIL_MSG("Unsupported button passed in.");
|
||||
// fall back to the only known remaining case
|
||||
wxFALLTHROUGH;// fall back to the only known remaining case
|
||||
|
||||
case wxMOUSE_BTN_MIDDLE:
|
||||
return kCGMouseButtonCenter;
|
||||
|
Reference in New Issue
Block a user