X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80eabe5a2a9922c2c73d44b4037a2de8fffdf87..904ccf52370e021b55b8a4c1afc5f62bc904da20:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index c2e863f0b4..8ae14ec4e9 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -20,8 +20,7 @@ #pragma hdrstop #endif -#include -#include +#if wxUSE_URL #include "wx/string.h" #include "wx/list.h" @@ -29,6 +28,9 @@ #include "wx/module.h" #include "wx/url.h" +#include +#include + IMPLEMENT_CLASS(wxProtoInfo, wxObject) IMPLEMENT_CLASS(wxURL, wxObject) @@ -385,7 +387,7 @@ void wxURL::SetProxy(const wxString& url_proxy) return; hostname = tmp_str(0, pos); - port = tmp_str(pos, tmp_str.Length()-pos); + port = tmp_str(pos+1, tmp_str.Length()-pos); addr.Hostname(hostname); addr.Service(port); @@ -521,3 +523,6 @@ void wxURLModule::OnExit() } #endif // wxUSE_SOCKETS + +#endif // wxUSE_URL +