X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..ad0ac642d5764497804bee2caad4fc1f20fc6cea:/include/wx/dateevt.h 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))