X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2454588723f7877c32d721fb190a64c66ec2fa4..872051d89bd098d1e6052fabc07174e67296a35f:/include/wx/protocol/ftp.h diff --git a/include/wx/protocol/ftp.h b/include/wx/protocol/ftp.h index 3f351f3664..01336376e0 100644 --- a/include/wx/protocol/ftp.h +++ b/include/wx/protocol/ftp.h @@ -13,10 +13,6 @@ #ifndef __WX_FTP_H__ #define __WX_FTP_H__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "ftp.h" -#endif - #include "wx/defs.h" #if wxUSE_PROTOCOL_FTP @@ -51,7 +47,7 @@ public: // Parameters set up // set transfer mode now - void SetPassive(bool pasv) { m_bPassive = pasv; }; + void SetPassive(bool pasv) { m_bPassive = pasv; } void SetDefaultTimeout(wxUint32 Value); bool SetBinary() { return SetTransferMode(BINARY); } bool SetAscii() { return SetTransferMode(ASCII); } @@ -129,7 +125,7 @@ protected: const wxString& arg = wxEmptyString); // get the server reply, return the first character of the reply code, - // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occured + // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occurred char GetResult(); // check that the result is equal to expected value @@ -142,7 +138,7 @@ protected: wxSocketBase *GetActivePort(); // helper for GetPort() - wxString GetPortCmdArgument(wxIPV4address Local, wxIPV4address New); + wxString GetPortCmdArgument(const wxIPV4address& Local, const wxIPV4address& New); // accept connection from server in active mode, returns the same socket as // passed in in passive mode