X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f901032baddcc784a00e8d550f68a10587b7275..50dee7e0ebbe05574116dce391596ddc55d644be:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index f3126b2f33..baac336f08 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -10,7 +10,7 @@ // Created: 07/07/1997 // RCS-ID: $Id$ // Copyright: (c) 1997, 1998 Guilhem Lavaux -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -507,7 +507,7 @@ public: { delete m_i_socket; - if ( LastError() == wxStream_NOERROR ) + if ( IsOk() ) { // wait for "226 transfer completed" m_ftp->CheckResult('2'); @@ -524,6 +524,8 @@ public: wxFTP *m_ftp; size_t m_ftpsize; + + DECLARE_NO_COPY_CLASS(wxInputFTPStream) }; class wxOutputFTPStream : public wxSocketOutputStream @@ -558,6 +560,8 @@ public: } wxFTP *m_ftp; + + DECLARE_NO_COPY_CLASS(wxOutputFTPStream) }; wxSocketClient *wxFTP::GetPort() @@ -890,7 +894,7 @@ wxList *wxFTP::GetList(const wxString& wildcard, bool details) { wxSocketBase *sock = GetPort(); if (!sock) - return FALSE; + return NULL; wxList *file_list = new wxList; wxString line; // NLST : List of Filenames (including Directory's !)