From: Vadim Zeitlin Date: Wed, 11 Feb 2004 22:00:53 +0000 (+0000) Subject: another part of adding error checking to event table macros X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4fa908c3bf3b0290a1f1c5157a48ef6ddc469548?ds=inline another part of adding error checking to event table macros git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/tabctrl.h b/include/wx/msw/tabctrl.h index 4571967de8..90528e05c3 100644 --- a/include/wx/msw/tabctrl.h +++ b/include/wx/msw/tabctrl.h @@ -156,9 +156,9 @@ private: typedef void (wxEvtHandler::*wxTabEventFunction)(wxTabEvent&); #define EVT_TAB_SEL_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_COMMAND_TAB_SEL_CHANGED, \ - id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTabEventFunction) & fn, NULL), + id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxTabEventFunction, & fn ), NULL), #define EVT_TAB_SEL_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_COMMAND_TAB_SEL_CHANGING, \ - id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTabEventFunction) & fn, NULL), + id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxTabEventFunction, & fn ), NULL), #endif // _WX_TABCTRL_H_