Define GetXXXVector() methods after all the classes are fully declared to
ensure that static_cast<> inside wxList::AsVector() they use compiles with the
OpenVMS compiler.
See #14814.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73048
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool RemoveView(wxView *view);
#ifndef __VISUALC6__
virtual bool RemoveView(wxView *view);
#ifndef __VISUALC6__
- wxViewVector GetViewsVector() const
- {
- return m_documentViews.AsVector<wxView*>();
- }
+ wxViewVector GetViewsVector() const;
#endif // !__VISUALC6__
wxList& GetViews() { return m_documentViews; }
#endif // !__VISUALC6__
wxList& GetViews() { return m_documentViews; }
virtual wxView *GetCurrentView() const { return m_currentView; }
#ifndef __VISUALC6__
virtual wxView *GetCurrentView() const { return m_currentView; }
#ifndef __VISUALC6__
- wxDocVector GetDocumentsVector() const
- {
- return m_docs.AsVector<wxDocument*>();
- }
-
- wxDocTemplateVector GetTemplatesVector() const
- {
- return m_templates.AsVector<wxDocTemplate*>();
- }
+ wxDocVector GetDocumentsVector() const;
+ wxDocTemplateVector GetTemplatesVector() const;
#endif // !__VISUALC6__
wxList& GetDocuments() { return m_docs; }
#endif // !__VISUALC6__
wxList& GetDocuments() { return m_docs; }
};
#endif // WXWIN_COMPATIBILITY_2_8
};
#endif // WXWIN_COMPATIBILITY_2_8
+#ifndef __VISUALC6__
+inline wxViewVector wxDocument::GetViewsVector() const
+{
+ return m_documentViews.AsVector<wxView*>();
+}
+
+inline wxDocVector wxDocManager::GetDocumentsVector() const
+{
+ return m_docs.AsVector<wxDocument*>();
+}
+
+inline wxDocTemplateVector wxDocManager::GetTemplatesVector() const
+{
+ return m_templates.AsVector<wxDocTemplate*>();
+}
+#endif // !__VISUALC6__
+
#endif // wxUSE_DOC_VIEW_ARCHITECTURE
#endif // _WX_DOCH__
#endif // wxUSE_DOC_VIEW_ARCHITECTURE
#endif // _WX_DOCH__