]> git.saurik.com Git - wxWidgets.git/commitdiff
Use native C++ GSocket interface
authorDavid Elliott <dfe@tgwbd.org>
Fri, 6 Aug 2004 22:14:59 +0000 (22:14 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 6 Aug 2004 22:14:59 +0000 (22:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/socket.h

index 03cc2fb1bddc2eb032504f184f0d8f9c8c7f7f39..85394cdd180807272b1c468c339723fb9bcac2c2 100644 (file)
@@ -118,7 +118,7 @@ public:
   inline bool IsData() { return WaitForRead(0, 0); };
   inline bool IsDisconnected() const { return !IsConnected(); };
   inline wxUint32 LastCount() const { return m_lcount; }
-  inline wxSocketError LastError() const { return (wxSocketError)GSocket_GetError(m_socket); }
+  inline wxSocketError LastError() const { return (wxSocketError)m_socket->GetError(); }
   void SaveState();
   void RestoreState();