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
This commit is contained in:
@@ -129,7 +129,7 @@ private:
|
|||||||
switch (callbackType)
|
switch (callbackType)
|
||||||
{
|
{
|
||||||
case kCFSocketConnectCallBack:
|
case kCFSocketConnectCallBack:
|
||||||
wxASSERT(!socket->m_server);
|
wxASSERT(!socket->IsServer());
|
||||||
// KH: If data is non-NULL, the connect failed, do not call Detected_Write,
|
// 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
|
// which will only end up creating a spurious connect event because the
|
||||||
// call to getsocketopt SO_ERROR inexplicably returns no error.
|
// call to getsocketopt SO_ERROR inexplicably returns no error.
|
||||||
@@ -219,7 +219,7 @@ int wxSocketManagerMac::GetCFCallback(wxSocketImpl *socket, wxSocketNotify event
|
|||||||
switch ( event )
|
switch ( event )
|
||||||
{
|
{
|
||||||
case wxSOCKET_CONNECTION:
|
case wxSOCKET_CONNECTION:
|
||||||
return socket->m_server ? kCFSocketReadCallBack
|
return socket->IsServer() ? kCFSocketReadCallBack
|
||||||
: kCFSocketConnectCallBack;
|
: kCFSocketConnectCallBack;
|
||||||
|
|
||||||
case wxSOCKET_LOST:
|
case wxSOCKET_LOST:
|
||||||
|
Reference in New Issue
Block a user