X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..77c8efc8c37da6d6a5e2e8022d21d1cd7d76371d:/src/common/ftp.cpp diff --git a/src/common/ftp.cpp b/src/common/ftp.cpp index ae77931ca7..dfda3b0c8c 100644 --- a/src/common/ftp.cpp +++ b/src/common/ftp.cpp @@ -48,9 +48,7 @@ #include "wx/protocol/protocol.h" #include "wx/protocol/ftp.h" -#ifndef __MWERKS__ - #include -#endif +#include // ---------------------------------------------------------------------------- // constants @@ -587,9 +585,9 @@ wxSocketBase *wxFTP::GetActivePort() addrNew.Service(0); // pick an open port number. wxSocketServer *sockSrv = new wxSocketServer(addrNew); - if (!sockSrv->Ok()) + if (!sockSrv->IsOk()) { - // We use Ok() here to see if everything is ok + // We use IsOk() here to see if everything is ok m_lastError = wxPROTO_PROTERR; delete sockSrv; return NULL; @@ -686,7 +684,7 @@ public: // when checking the result, the stream will // almost always show an error, even if the file was - // properly transfered, thus, let's just grab the result + // properly transferred, thus, let's just grab the result // we are looking for "226 transfer completed" char code = m_ftp->GetResult(); @@ -902,7 +900,7 @@ int wxFTP::GetFileSize(const wxString& fileName) int filesize = -1; - // Check for existance of file via wxFTP::FileExists(...) + // Check for existence of file via wxFTP::FileExists(...) if ( FileExists(fileName) ) { wxString command; @@ -939,7 +937,7 @@ int wxFTP::GetFileSize(const wxString& fileName) } // Set transfermode back to the original. Only the "SIZE"-command - // is dependant on transfermode + // is dependent on transfermode if ( oldTransfermode != NONE ) { SetTransferMode(oldTransfermode);