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 }