]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mousestate.h
Test using wxString::ToCDouble() in wxAny.
[wxWidgets.git] / include / wx / mousestate.h
index 98ab291baf72cece641d8e233fe33c7de677b55a..8e954ad371742d5007976d818368d285af392b64 100644 (file)
@@ -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;
     }