X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..aa61d3525370a9b9fa8c797d9b7f89d96994db5f:/include/wx/dateevt.h?ds=sidebyside diff --git a/include/wx/dateevt.h b/include/wx/dateevt.h index e8ea798496..b37340c5cd 100644 --- a/include/wx/dateevt.h +++ b/include/wx/dateevt.h @@ -51,7 +51,7 @@ END_DECLARE_EVENT_TYPES() typedef void (wxEvtHandler::*wxDateEventFunction)(wxDateEvent&); #define wxDateEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxDateEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDateEventFunction, &func) #define EVT_DATE_CHANGED(id, fn) \ wx__DECLARE_EVT1(wxEVT_DATE_CHANGED, id, wxDateEventHandler(fn))