X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa03f04345b620d1a14529b05961116b20a1297..0645e2b90a8c0a06e178fa6515d3480dc40d002a:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 2cd5df584a..15a718b4fd 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -321,7 +321,7 @@ public: typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); #define wxSocketEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxSocketEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxSocketEventFunction, &func) #define EVT_SOCKET(id, func) \ wx__DECLARE_EVT1(wxEVT_SOCKET, id, wxSocketEventHandler(func))