]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/socket.h
Wrappers for *ToText
[wxWidgets.git] / include / wx / socket.h
index ee5df5f03ed55b02ee32e5da168cb786cfc24102..864ba4f96dd841d15e2d72dbad6f6b61fc3281c8 100644 (file)
@@ -323,10 +323,8 @@ typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&);
 
 #define EVT_SOCKET(id, func) \
     DECLARE_EVENT_TABLE_ENTRY( wxEVT_SOCKET, id, -1, \
-                              (wxObjectEventFunction) \
-                              (wxEventFunction) \
-                              (wxSocketEventFunction) & func, \
-                              (wxObject *) NULL ),
+        (wxObjectEventFunction) (wxEventFunction)  wxStaticCastEvent( wxSocketEventFunction, & func ), \
+        (wxObject *) NULL ),
 
 
 #endif