From df1254dfbf73f4855d2e42587c8e43c31892ef86 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 23 Aug 2017 23:27:25 -0700 Subject: [PATCH] Remove unneeded override of Destroy() after d456d2d6 --- include/wx/docview.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/wx/docview.h b/include/wx/docview.h index 6d8a10f899..3fb726cada 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -720,11 +720,6 @@ public: return true; } - virtual bool Destroy() wxOVERRIDE - { - return BaseClass::Destroy(); - } - protected: // hook the child view into event handlers chain here virtual bool TryBefore(wxEvent& event) wxOVERRIDE @@ -744,7 +739,7 @@ private: void OnCloseWindow(wxCloseEvent& event) { if ( CloseView(event) ) - Destroy(); + BaseClass::Destroy(); //else: vetoed }