]> git.saurik.com Git - wxWidgets.git/commitdiff
Uses wxSocketBase::Unread instead of CreatePushback
authorGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 30 Sep 1999 23:42:36 +0000 (23:42 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 30 Sep 1999 23:42:36 +0000 (23:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/protocol.cpp

index c535c79258285876f35f85fb93801b39105e5980..64939970e69828cf3d18d7a190911f0d2ac9f769 100644 (file)
@@ -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
 }