X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5f159ac91d08a32ddd33e384c0357f7dc5500e2..7b162e540e98415f8ac6bc1fd5b880e143aa85e5:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index 81a4177100..11989e4c1a 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -12,7 +12,7 @@ #ifndef _WX_DOCH__ #define _WX_DOCH__ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "docview.h" #endif @@ -202,11 +202,6 @@ public: // Override to do cleanup/veto close virtual bool OnClose(bool deleteWindow); -#if WXWIN_COMPATIBILITY - // Defeat compiler warning - bool OnClose() { return wxEvtHandler::OnClose(); } -#endif - // Extend event processing to search the document's event table virtual bool ProcessEvent(wxEvent& event); @@ -379,7 +374,7 @@ public: // Views or windows should inform the document manager // when a view is going in or out of focus - virtual void ActivateView(wxView *view, bool activate = TRUE, bool deleting = FALSE); + virtual void ActivateView(wxView *view, bool activate = TRUE); virtual wxView *GetCurrentView() const; wxList& GetDocuments() { return m_docs; } @@ -569,7 +564,7 @@ public: virtual wxString GetHistoryFile(size_t i) const; virtual size_t GetCount() const { return m_fileHistoryN; } - wxList& GetMenus() const { return (wxList&) m_fileMenus; } + const wxList& GetMenus() const { return m_fileMenus; } // deprecated, use GetCount() instead wxDEPRECATED( size_t GetNoHistoryFiles() const );