apparently unneeded temporary iterator variable removed (patch 1096066)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
adbc621dcb
commit
d5a93fda41
@ -187,17 +187,15 @@ bool wxDocument::DeleteAllViews()
|
||||
|
||||
for ( it = m_documentViews.begin(), en = m_documentViews.end();
|
||||
it != en;
|
||||
)
|
||||
++it )
|
||||
{
|
||||
wxView *view = (wxView *)*it;
|
||||
if (!view->Close())
|
||||
return false;
|
||||
|
||||
wxList::iterator next = it; ++next;
|
||||
|
||||
delete view; // Deletes node implicitly
|
||||
it = next;
|
||||
}
|
||||
|
||||
// If we haven't yet deleted the document (for example
|
||||
// if there were no views) then delete it.
|
||||
if (manager && manager->GetDocuments().Member(this))
|
||||
|
Loading…
Reference in New Issue
Block a user