X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cc98b3e3fbe91688e1ff8852a03e589aec5c866..bf3e0fbd1ff071caa5d929f01ad6ef9a64ee6494:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index d75645b5f9..1eaf95d7f5 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1307,11 +1307,10 @@ public: virtual void OnCommand(wxWindow& WXUNUSED(win), wxCommandEvent& WXUNUSED(event)) { + wxFAIL_MSG(_T("shouldn't be called any more")); } - // Called if child control has no - // callback function - // Default behaviour + // Called if child control has no callback function virtual long Default() { return GetNextHandler() ? GetNextHandler()->Default() : 0; }; #endif // WXWIN_COMPATIBILITY_2