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:
Vadim Zeitlin
2008-03-11 14:06:04 +00:00
parent c6b4dd2e4d
commit ba3049f5a5

View File

@@ -82,18 +82,17 @@ bool wxTopLevelWindowBase::Destroy()
wxPendingDelete.Append(this);
#ifdef __WXMAC__
// on mac we know that objects will always be deleted after this event
// has been handled, using Hide we avoid erratic redraws during window
// tear down
Hide();
#else
// on mac we know that objects will always be deleted after this event
// has been handled, using Hide we avoid erratic redraws during window
// tear down
Hide();
#else // !__WXMAC__
// 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
// 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
// events we won't prune wxPendingDelete list and the application won't
// terminate
const wxWindowList::const_iterator end = wxTopLevelWindows.end();
for ( wxWindowList::const_iterator i = wxTopLevelWindows.begin(),
end = wxTopLevelWindows.end();
i != end;
@@ -109,7 +108,7 @@ bool wxTopLevelWindowBase::Destroy()
break;
}
}
#endif
#endif // __WXMAC__/!__WXMAC__
return true;
}