From: Vadim Zeitlin Date: Sun, 30 Oct 2011 14:19:55 +0000 (+0000) Subject: Remove apparently unnecessary wxAuiMDIClientWindow dtor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/74e0e33a85ab0514dd1c0a750d694da1f3a28f08?hp=05f4dfa7268b60d2f56a685933c49f3d3d4be745 Remove apparently unnecessary wxAuiMDIClientWindow dtor. This dtor doesn't seem to do anything useful as the base class dtor already destroys all window children anyhow and removing it is reported to fix some crashes in wxAUI (which is surprising and probably hides some other bug...). Closes #13547. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/aui/tabmdi.h b/include/wx/aui/tabmdi.h index fa1fd058d5..053d539d38 100644 --- a/include/wx/aui/tabmdi.h +++ b/include/wx/aui/tabmdi.h @@ -244,7 +244,6 @@ class WXDLLIMPEXP_AUI wxAuiMDIClientWindow : public wxAuiNotebook public: wxAuiMDIClientWindow(); wxAuiMDIClientWindow(wxAuiMDIParentFrame *parent, long style = 0); - ~wxAuiMDIClientWindow(); virtual bool CreateClient(wxAuiMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL); diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index 8a560e75ff..5d6859a371 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -725,11 +725,6 @@ wxAuiMDIClientWindow::wxAuiMDIClientWindow(wxAuiMDIParentFrame* parent, long sty CreateClient(parent, style); } -wxAuiMDIClientWindow::~wxAuiMDIClientWindow() -{ - DestroyChildren(); -} - bool wxAuiMDIClientWindow::CreateClient(wxAuiMDIParentFrame* parent, long style) { SetWindowStyleFlag(style);