X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51566e1f980caf1f3f08e1163e8a6456fb745d16..e538985edcc645878a1bbeb3dc3e898e9d29ad11:/src/osx/core/sockosx.cpp diff --git a/src/osx/core/sockosx.cpp b/src/osx/core/sockosx.cpp index ce4926dafa..917b821ce1 100644 --- a/src/osx/core/sockosx.cpp +++ b/src/osx/core/sockosx.cpp @@ -156,7 +156,7 @@ private: CFSocketRef m_socket; CFRunLoopSourceRef m_source; - DECLARE_NO_COPY_CLASS(wxSocketImplMac) + wxDECLARE_NO_COPY_CLASS(wxSocketImplMac); }; } // anonymous namespace @@ -222,15 +222,14 @@ int wxSocketManagerMac::GetCFCallback(wxSocketImpl *socket, wxSocketNotify event return socket->IsServer() ? kCFSocketReadCallBack : kCFSocketConnectCallBack; - case wxSOCKET_LOST: case wxSOCKET_INPUT: return kCFSocketReadCallBack; case wxSOCKET_OUTPUT: return kCFSocketWriteCallBack; - case wxSOCKET_MAX_EVENT: - wxFAIL_MSG( "invalid wxSocketNotify" ); + case wxSOCKET_LOST: + wxFAIL_MSG( "unexpected wxSocketNotify" ); return 0; default: