X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ada568223b79c8a5769cc351c36a8e2ccd7841..da175b2ce4dc35cc4c0baa8bbdc16bf4de6c7684:/include/wx/protocol/protocol.h diff --git a/include/wx/protocol/protocol.h b/include/wx/protocol/protocol.h index c3773a750d..f9d105406d 100644 --- a/include/wx/protocol/protocol.h +++ b/include/wx/protocol/protocol.h @@ -53,7 +53,7 @@ protected: friend class wxURL; public: - wxProtoInfo(const char *name, const char *serv_name, const bool need_host1, + wxProtoInfo(const wxChar *name, const wxChar *serv_name, const bool need_host1, wxClassInfo *info); }; @@ -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);