git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37359
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Check if there are any modal windows present,
// in which case we need to add a grab.
// 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();
wxDialog *dialog = wxDynamicCast(win, wxDialog);
if (dialog && dialog->IsModal())
wxDialog *dialog = wxDynamicCast(win, wxDialog);
if (dialog && dialog->IsModal())