X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/common/protocol.cpp?ds=inline diff --git a/src/common/protocol.cpp b/src/common/protocol.cpp index e92f3a0899..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: @@ -13,14 +13,18 @@ #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 @@ -198,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); @@ -209,4 +213,3 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) #endif // wxUSE_SOCKETS #endif // wxUSE_PROTOCOL -