VC6 compilation fix: remove redundant end variable declaration in Destroy()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,14 +86,13 @@ bool wxTopLevelWindowBase::Destroy()
|
|||||||
// has been handled, using Hide we avoid erratic redraws during window
|
// has been handled, using Hide we avoid erratic redraws during window
|
||||||
// tear down
|
// tear down
|
||||||
Hide();
|
Hide();
|
||||||
#else
|
#else // !__WXMAC__
|
||||||
// normally we want to hide the window immediately so that it doesn't get
|
// normally we want to hide the window immediately so that it doesn't get
|
||||||
// stuck on the screen while it's being destroyed, however we shouldn't
|
// stuck on the screen while it's being destroyed, however we shouldn't
|
||||||
// hide the last visible window as then we might not get any idle events
|
// hide the last visible window as then we might not get any idle events
|
||||||
// any more as no events will be sent to the hidden window and without idle
|
// any more as no events will be sent to the hidden window and without idle
|
||||||
// events we won't prune wxPendingDelete list and the application won't
|
// events we won't prune wxPendingDelete list and the application won't
|
||||||
// terminate
|
// terminate
|
||||||
const wxWindowList::const_iterator end = wxTopLevelWindows.end();
|
|
||||||
for ( wxWindowList::const_iterator i = wxTopLevelWindows.begin(),
|
for ( wxWindowList::const_iterator i = wxTopLevelWindows.begin(),
|
||||||
end = wxTopLevelWindows.end();
|
end = wxTopLevelWindows.end();
|
||||||
i != end;
|
i != end;
|
||||||
@@ -109,7 +108,7 @@ bool wxTopLevelWindowBase::Destroy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif // __WXMAC__/!__WXMAC__
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user