From 19e0e04b935670f8f2de8980d84bd08cd41acd54 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 30 Jul 1999 04:28:24 +0000 Subject: [PATCH] fixed compiler error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/url.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/url.cpp b/src/common/url.cpp index db4517e3d9..a51ee7b273 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -256,6 +256,8 @@ wxInputStream *wxURL::GetInputStream(void) } #if wxUSE_SOCKETS + wxIPV4address addr; + // m_protoinfo is NULL when we use a proxy if (!m_useProxy && m_protoinfo->m_needhost) { if (!addr.Hostname(m_hostname)) { @@ -263,7 +265,6 @@ wxInputStream *wxURL::GetInputStream(void) return NULL; } - wxIPV4address addr; addr.Service(m_servname); if (!m_protocol->Connect(addr, TRUE)) // Watcom needs the 2nd arg for some reason @@ -373,14 +374,14 @@ wxString wxURL::ConvertToValidURI(const wxString& uri) if (c == _T(' ')) out_str += _T('+'); else { - if (!isalpha(c) && c != _T('.') && c != _T('+') && c != _T('/')) { + if (!isalpha(c) && c != _T('.') && c != _T('+') && c != _T('/')) { hexa_code.Printf(_T("%%%02X"), c); out_str += hexa_code; } else out_str += c; } } - + return out_str; } -- 2.45.2