X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/579213e97b34f35ba1661c6d5b553d2989caddaf..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/core/sockosx.cpp diff --git a/src/osx/core/sockosx.cpp b/src/osx/core/sockosx.cpp index f940120738..917b821ce1 100644 --- a/src/osx/core/sockosx.cpp +++ b/src/osx/core/sockosx.cpp @@ -129,7 +129,7 @@ private: switch (callbackType) { case kCFSocketConnectCallBack: - wxASSERT(!socket->m_server); + wxASSERT(!socket->IsServer()); // KH: If data is non-NULL, the connect failed, do not call Detected_Write, // which will only end up creating a spurious connect event because the // call to getsocketopt SO_ERROR inexplicably returns no error. @@ -156,7 +156,7 @@ private: CFSocketRef m_socket; CFRunLoopSourceRef m_source; - DECLARE_NO_COPY_CLASS(wxSocketImplMac) + wxDECLARE_NO_COPY_CLASS(wxSocketImplMac); }; } // anonymous namespace @@ -219,18 +219,17 @@ int wxSocketManagerMac::GetCFCallback(wxSocketImpl *socket, wxSocketNotify event switch ( event ) { case wxSOCKET_CONNECTION: - return socket->m_server ? kCFSocketReadCallBack - : kCFSocketConnectCallBack; + 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: