X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a4df1595bc8ce70286afe99f122f64916790ad4..37b8e6798782278fdfe4f3c1291aaff55cdbb8c9:/src/common/protocol.cpp diff --git a/src/common/protocol.cpp b/src/common/protocol.cpp index c535c79258..eab8724ef4 100644 --- a/src/common/protocol.cpp +++ b/src/common/protocol.cpp @@ -110,7 +110,7 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) { result = result.Left(result.Length()-1); size = ret-tmp_str+1; - sock->CreatePushbackBefore(&tmp_buf[size], avail-size); + sock->Unread(&tmp_buf[size], avail-size); return wxPROTO_NOERR; #undef PROTO_BSIZE } @@ -128,9 +128,7 @@ public: void OnExit(); }; -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxProtocolModule, wxModule) -#endif bool wxProtocolModule::OnInit() {