Document wxDocument::DeleteContents().

This method purpose was not quite clear as it was only mentioned in passing in
documentation of OnCloseDocument() but not really documented itself.

Also don't call it from wxDocument dtor as this is useless: the user-defined
overridden version will never be called from here and the base class version
does nothing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-13 14:37:00 +00:00
parent 17c02cc8e6
commit 2954883593
3 changed files with 18 additions and 6 deletions

View File

@@ -135,8 +135,6 @@ bool wxDocument::DeleteContents()
wxDocument::~wxDocument()
{
DeleteContents();
delete m_commandProcessor;
if (GetDocumentManager())