From: Steve Lamerton Date: Mon, 1 Aug 2011 17:57:48 +0000 (+0000) Subject: Fix warnings for the OSX WebKit backend. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e28cc3ca0aa9bb1c7e9613c447ca94b13a8bc858 Fix warnings for the OSX WebKit backend. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h index 59d8ae1dbd..862121e2a3 100644 --- a/include/wx/osx/webview_webkit.h +++ b/include/wx/osx/webview_webkit.h @@ -64,6 +64,8 @@ public: virtual void SetPageTitle(const wxString& title) { m_pageTitle = title; } virtual wxString GetPageTitle(){ return m_pageTitle; } + //We do not want to hide the other overloads + using wxWebView::SetPage; virtual void SetPage(const wxString& html, const wxString& baseUrl); virtual void Print(); @@ -82,12 +84,12 @@ public: //History functions virtual void ClearHistory() {} - virtual void EnableHistory(bool enable = true) {} + virtual void EnableHistory(bool WXUNUSED(enable) = true) {} virtual wxVector > GetBackwardHistory() { return wxVector >(); } virtual wxVector > GetForwardHistory() { return wxVector >(); } - virtual void LoadHistoryItem(wxSharedPtr item) {} + virtual void LoadHistoryItem(wxSharedPtr WXUNUSED(item)) {} //Undo / redo functionality virtual bool CanUndo() { return false; } @@ -118,7 +120,7 @@ public: void RunScript(const wxString& javascript); //Virtual Filesystem Support - virtual void RegisterHandler(wxWebHandler* handler) {}; + virtual void RegisterHandler(wxWebHandler* WXUNUSED(handler)) {}; // ---- methods not from the parent (common) interface bool CanGetPageSource();