X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/907ea7d5cc64befac486b269b3ab5b87dfc246d5..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/mousestate.h diff --git a/include/wx/mousestate.h b/include/wx/mousestate.h index f338ea55d9..8e954ad371 100644 --- a/include/wx/mousestate.h +++ b/include/wx/mousestate.h @@ -100,13 +100,11 @@ public: case wxMOUSE_BTN_NONE: case wxMOUSE_BTN_MAX: - wxFAIL_MSG(wxS("invalid parameter")); - return false; - - default: - wxFAIL_MSG(wxS("unknown parameter")); - return false; + break; } + + wxFAIL_MSG(wxS("invalid parameter")); + return false; } @@ -128,7 +126,7 @@ public: // version of wxMouseState but their names are confusing as wxMouseEvent // has methods with the same names which do something quite different so // don't use them any more -#ifdef WXWIN_COMPATIBILITY_2_8 +#if WXWIN_COMPATIBILITY_2_8 wxDEPRECATED_INLINE(bool LeftDown() const, return LeftIsDown(); ) wxDEPRECATED_INLINE(bool MiddleDown() const, return MiddleIsDown(); ) wxDEPRECATED_INLINE(bool RightDown() const, return RightIsDown(); )