X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..a14132e13a1b11383de5cd847be8afc7e541598d:/include/wx/listbase.h diff --git a/include/wx/listbase.h b/include/wx/listbase.h index ef640effcb..97a3555fae 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -444,7 +444,7 @@ END_DECLARE_EVENT_TYPES() typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&); #define wxListEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxListEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxListEventFunction, &func) #define wx__DECLARE_LISTEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_LIST_ ## evt, id, wxListEventHandler(fn))