]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
clean up modules after destroying the app, not before it
[wxWidgets.git] / src / common / docview.cpp
index d881e212d1fa55954bfefde97d133d6515d08851..38dd2f9363df35587b92005b94f1b8d980f60289 100644 (file)
@@ -261,7 +261,7 @@ bool wxDocument::SaveAs()
 
     if (docTemplate->GetViewClassInfo() && docTemplate->GetDocClassInfo())
     {
-        wxObjectListNode* node = wxDocManager::GetDocumentManager()->GetTemplates().GetFirst();
+        wxList::compatibility_iterator node = wxDocManager::GetDocumentManager()->GetTemplates().GetFirst();
         while (node)
         {
             wxDocTemplate *t = (wxDocTemplate*) node->GetData();