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