X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34e0d9f874fe4ba3dd8112a68831cb20bb80cac7..a4609ab847819b47c996674420871f4514d50625:/src/common/protocol.cpp diff --git a/src/common/protocol.cpp b/src/common/protocol.cpp index e1933a2e20..7f1ba9d358 100644 --- a/src/common/protocol.cpp +++ b/src/common/protocol.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: protocol.cpp +// Name: src/common/protocol.cpp // Purpose: Implement protocol base class // Author: Guilhem Lavaux // Modified by: @@ -9,22 +9,22 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "protocol.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif #if wxUSE_PROTOCOL #include "wx/protocol/protocol.h" + +#ifndef WX_PRECOMP + #include "wx/module.h" +#endif + #include "wx/url.h" -#include "wx/module.h" #include @@ -202,7 +202,7 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) *ret = 0; result = wxString::FromAscii( tmp_str ); - result = result.Left(result.Length()-1); + result = result.Left(result.length()-1); size = ret-tmp_str+1; sock->Unread(&tmp_buf[size], avail-size); @@ -213,4 +213,3 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) #endif // wxUSE_SOCKETS #endif // wxUSE_PROTOCOL -