From 9123889f20765f3a5cc6674a816b3d7e4280ef2c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 28 Nov 2008 13:43:41 +0000 Subject: [PATCH] no real changes, just moved wxSocketImplUnix ctor inline git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/unix/private/sockunix.h | 11 ++++++++--- src/unix/sockunix.cpp | 10 ---------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/include/wx/unix/private/sockunix.h b/include/wx/unix/private/sockunix.h index 3dc2f9d635..472d524a56 100644 --- a/include/wx/unix/private/sockunix.h +++ b/include/wx/unix/private/sockunix.h @@ -15,12 +15,17 @@ #include #include -class wxSocketIOHandler; - class wxSocketImplUnix : public wxSocketImpl { public: - wxSocketImplUnix(wxSocketBase& wxsocket); + wxSocketImplUnix(wxSocketBase& wxsocket) + : wxSocketImpl(wxsocket) + { + m_fds[0] = + m_fds[1] = -1; + + m_use_events = false; + } virtual void Shutdown(); virtual wxSocketImpl *WaitConnection(wxSocketBase& wxsocket); diff --git a/src/unix/sockunix.cpp b/src/unix/sockunix.cpp index 7fa43200ce..1893e118e8 100644 --- a/src/unix/sockunix.cpp +++ b/src/unix/sockunix.cpp @@ -431,16 +431,6 @@ struct servent *wxGetservbyname_r(const char *port, const char *protocol, # define SOCKET_DEBUG(args) #endif /* __GSOCKET_DEBUG__ */ -/* Constructors / Destructors for wxSocketImplUnix */ - -wxSocketImplUnix::wxSocketImplUnix(wxSocketBase& wxsocket) - : wxSocketImpl(wxsocket) -{ - m_fds[0] = - m_fds[1] = -1; - - m_use_events = false; -} /* * Disallow further read/write operations on this socket, close -- 2.45.2