From: Vadim Zeitlin Date: Mon, 26 Nov 2012 23:53:44 +0000 (+0000) Subject: Compilation fix to docview sample after r73004. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d83af3660a84ef51f4df170ec832bb11845a1d1f Compilation fix to docview sample after r73004. Don't use wxDocManager::GetDocumentsVector() with VC6 which doesn't have it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/docview/docview.cpp b/samples/docview/docview.cpp index 7c305d7e57..c8d4adcf73 100644 --- a/samples/docview/docview.cpp +++ b/samples/docview/docview.cpp @@ -385,8 +385,14 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event)) default: wxFAIL_MSG( "unknown mode "); } - const wxDocVector - docList = wxDocManager::GetDocumentManager()->GetDocumentsVector(); + +#ifdef __VISUALC6__ + const int docsCount = + wxDocManager::GetDocumentManager()->GetDocuments().GetCount(); +#else + const int docsCount = + wxDocManager::GetDocumentManager()->GetDocumentsVector().size(); +#endif wxLogMessage ( @@ -398,6 +404,6 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event)) "\n" "Usage: docview [--{mdi,sdi,single}]", modeName, - static_cast(docList.size()) + docsCount ); }