From 288de46cb2933c78e0ebd7ed0ecb7f12ad3e48b4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Nov 2012 23:01:45 +0000 Subject: [PATCH] Blind compilation fix for VC6 after r73004. Define wxDocTemplateVector for VC6 too, it's used in docview.cpp. Also wrap too long lines. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/docview.h | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/include/wx/docview.h b/include/wx/docview.h index f4ecc68950..ae45ba71cd 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -21,6 +21,7 @@ #include "wx/string.h" #include "wx/frame.h" #include "wx/filehistory.h" +#include "wx/vector.h" #if wxUSE_PRINTING_ARCHITECTURE #include "wx/print.h" @@ -60,11 +61,9 @@ enum #define wxMAX_FILE_HISTORY 9 -#ifndef __VISUALC6__ typedef wxVector wxDocVector; typedef wxVector wxViewVector; typedef wxVector wxDocTemplateVector; -#endif class WXDLLIMPEXP_CORE wxDocument : public wxEvtHandler { @@ -148,8 +147,12 @@ public: virtual bool RemoveView(wxView *view); #ifndef __VISUALC6__ - wxViewVector GetViewsVector() const { return m_documentViews.AsVector(); } -#endif + wxViewVector GetViewsVector() const + { + return m_documentViews.AsVector(); + } +#endif // !__VISUALC6__ + wxList& GetViews() { return m_documentViews; } const wxList& GetViews() const { return m_documentViews; } @@ -467,9 +470,17 @@ public: virtual wxView *GetCurrentView() const { return m_currentView; } #ifndef __VISUALC6__ - wxDocVector GetDocumentsVector() const { return m_docs.AsVector(); } - wxDocTemplateVector GetTemplatesVector() const { return m_templates.AsVector(); } -#endif + wxDocVector GetDocumentsVector() const + { + return m_docs.AsVector(); + } + + wxDocTemplateVector GetTemplatesVector() const + { + return m_templates.AsVector(); + } +#endif // !__VISUALC6__ + wxList& GetDocuments() { return m_docs; } wxList& GetTemplates() { return m_templates; } -- 2.45.2