X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ada568223b79c8a5769cc351c36a8e2ccd7841..7f42cff13eaba35dda3527b2ca658dd00b9e7a46:/include/wx/protocol/protocol.h diff --git a/include/wx/protocol/protocol.h b/include/wx/protocol/protocol.h index c3773a750d..608c8f1f06 100644 --- a/include/wx/protocol/protocol.h +++ b/include/wx/protocol/protocol.h @@ -63,15 +63,15 @@ public: wxProtocol(); bool Reconnect(); - virtual bool Connect(const wxString& host) { return FALSE; } - virtual bool Connect(wxSockAddress& addr) { return wxSocketClient::Connect(addr); } + virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; } + virtual bool Connect( wxSockAddress& addr, bool WXUNUSED(wait) = TRUE) { return wxSocketClient::Connect(addr); } virtual bool Abort() = 0; virtual wxInputStream *GetInputStream(const wxString& path) = 0; virtual wxProtocolError GetError() = 0; - virtual wxString GetContentType() { return (char *)NULL; } - virtual void SetUser(const wxString& user) {} - virtual void SetPassword(const wxString& passwd) {} + virtual wxString GetContentType() { return wxEmptyString; } + virtual void SetUser(const wxString& WXUNUSED(user)) {} + virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {} }; wxProtocolError WXDLLEXPORT GetLine(wxSocketBase *sock, wxString& result);