Calling a virtual function from a destructor is not good:

rearranged code to avoid it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-03-26 22:22:55 +00:00
parent d8d1818419
commit 2187eef5bb
4 changed files with 17 additions and 6 deletions

View File

@@ -60,6 +60,8 @@ public:
protected:
// common part of all constructors
void Init();
// common part of wxDialog/wxFrame destructors
void PreDestroy();
private:
// both these functions should be pure virtual