X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34e0d9f874fe4ba3dd8112a68831cb20bb80cac7..12cca26a83405b5f7f29ce2c44c5f965d07ceafc:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index a2f4cad4af..cf66d1bf84 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -348,7 +348,7 @@ char wxFTP::GetResult() } // if we got here we must have a non empty code string - return code[0u]; + return (char)code[0u]; } // ---------------------------------------------------------------------------- @@ -387,7 +387,7 @@ bool wxFTP::SetTransferMode(TransferMode transferMode) return false; } - // If we get here the operation has been succesfully completed + // If we get here the operation has been successfully completed // Set the status-member m_currentTransfermode = transferMode; @@ -760,9 +760,6 @@ bool wxFTP::Abort() wxInputStream *wxFTP::GetInputStream(const wxString& path) { -#if !wxUSE_URL - return NULL; -#else if ( ( m_currentTransfermode == NONE ) && !SetTransferMode(BINARY) ) return NULL; @@ -774,7 +771,7 @@ wxInputStream *wxFTP::GetInputStream(const wxString& path) return NULL; } - wxString tmp_str = wxT("RETR ") + wxURL::ConvertFromURI(path); + wxString tmp_str = wxT("RETR ") + wxURI::Unescape(path); if ( !CheckCommand(tmp_str, '1') ) return NULL; @@ -789,7 +786,6 @@ wxInputStream *wxFTP::GetInputStream(const wxString& path) wxInputFTPStream *in_stream = new wxInputFTPStream(this, sock); return in_stream; -#endif } wxOutputStream *wxFTP::GetOutputStream(const wxString& path) @@ -828,7 +824,7 @@ bool wxFTP::GetList(wxArrayString& files, // - Windows : like "dir" command // - others : ? wxString line(details ? _T("LIST") : _T("NLST")); - if ( !wildcard.IsEmpty() ) + if ( !wildcard.empty() ) { line << _T(' ') << wildcard; }