From f7b83689c6c41d84d6a6ccb628148fd747f900c4 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 27 Jul 2003 19:13:19 +0000 Subject: [PATCH] STL compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helpext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index f0c5bf332d..04e168a39a 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -198,11 +198,11 @@ void wxExtHelpController::DeleteList() { if(m_MapList) { - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); while (node) { delete (wxExtHelpMapEntry *)node->GetData(); - delete node; + m_MapList->Erase(node); node = m_MapList->GetFirst(); } delete m_MapList; @@ -328,7 +328,7 @@ wxExtHelpController::DisplayContents() return FALSE; wxString contents; - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; while(node) { @@ -360,7 +360,7 @@ wxExtHelpController::DisplaySection(int sectionNo) return FALSE; wxBusyCursor b; // display a busy cursor - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; while(node) { @@ -401,7 +401,7 @@ wxExtHelpController::KeywordSearch(const wxString& k) int idx = 0, j; bool rc; bool showAll = k.IsEmpty(); - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; { -- 2.45.2