X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..a9102b3671a45d116d781b0c8e90d2e9a84fbdcb:/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))