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
This commit is contained in:
Vadim Zeitlin
2012-11-26 23:53:44 +00:00
parent 7af131ab0e
commit d83af3660a

View File

@@ -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<int>(docList.size())
docsCount
);
}