From: Julian Smart <julian@anthemion.co.uk>
Date: Fri, 5 Jan 2001 10:50:24 +0000 (+0000)
Subject: Changed GetDocuments() to remove cast, added GetTemplates()
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0b237b676d49b9503e432018ccb80b120d3ec1e5

Changed GetDocuments() to remove cast, added GetTemplates()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/docview.h b/include/wx/docview.h
index 8eafaccc13..de1f8ed36a 100644
--- a/include/wx/docview.h
+++ b/include/wx/docview.h
@@ -373,7 +373,8 @@ public:
     virtual void ActivateView(wxView *view, bool activate = TRUE, bool deleting = FALSE);
     virtual wxView *GetCurrentView() const;
 
-    virtual wxList& GetDocuments() const { return (wxList&) m_docs; }
+    wxList& GetDocuments() { return m_docs; }
+    wxList& GetTemplates() { return m_templates; }
 
     // Make a default document name
     virtual bool MakeDefaultName(wxString& buf);