From 51566e1f980caf1f3f08e1163e8a6456fb745d16 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Dec 2008 21:30:02 +0000 Subject: [PATCH] compilation fix: use IsServer() instead of m_server directly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/sockosx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osx/core/sockosx.cpp b/src/osx/core/sockosx.cpp index f940120738..ce4926dafa 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. @@ -219,8 +219,8 @@ 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: -- 2.45.2