]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/docview.cpp
remove executable property from non-executable files, closes #15504
[wxWidgets.git] / samples / docview / docview.cpp
index 7c305d7e57d2b7d3de6b9532cd9ca066f47ec752..d00bcf903a430190b2ea9ce2271bfd80d9d0869e 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by: Vadim Zeitlin: merge with the MDI version and general cleanup
 // Created:     04/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) 1998 Julian Smart
 //              (c) 2008 Vadim Zeitlin
 // Licence:     wxWindows licence
@@ -385,8 +384,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 +403,6 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event))
         "\n"
         "Usage: docview [--{mdi,sdi,single}]",
         modeName,
-        static_cast<int>(docList.size())
+        docsCount
     );
 }