]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpfrm.cpp
using new API (no visual difference)
[wxWidgets.git] / src / html / helpfrm.cpp
index d01182f17f7c67ab2a6c398ac71a8273a4f4c5a1..11ac77f2f94bfbe84656851d6633ed9d0cfbf7fb 100644 (file)
@@ -198,11 +198,11 @@ void wxHtmlHelpFrame::AddGrabIfNeeded()
     
     // Check if there are any modal windows present,
     // in which case we need to add a grab.
-    for ( wxWindowList::Node * node = wxTopLevelWindows.GetFirst();
-          node;
-          node = node->GetNext() )
+    for ( wxWindowList::iterator it = wxTopLevelWindows.begin();
+          it != wxTopLevelWindows.end();
+          ++it )
     {
-        wxWindow *win = node->GetData();
+        wxWindow *win = *it;
         wxDialog *dialog = wxDynamicCast(win, wxDialog);
 
         if (dialog && dialog->IsModal())