X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3755cfa64d2f5182ec88d9d0bf934769e0269d10..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/html/helpfrm.cpp?ds=inline diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index d01182f17f..11ac77f2f9 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -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())