]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxPreferencesEditor dtor virtual.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 May 2013 11:53:43 +0000 (11:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 May 2013 11:53:43 +0000 (11:53 +0000)
Mainly just to suppress g++ warnings about a class with virtual functions but
non-virtual dtor, this class isn't really supposed to be used polymorphically.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/preferences.h

index 1a07fd857bd9ac1db0c1b2d06029f3c4ccf2c14d..fb6387a0757a8314ae8d66c0c01e189add01354b 100644 (file)
@@ -93,7 +93,9 @@ class WXDLLIMPEXP_CORE wxPreferencesEditor
 public:
     // Ctor creates an empty editor, use AddPage() to add controls to it.
     wxPreferencesEditor(const wxString& title = wxString());
-    ~wxPreferencesEditor();
+
+    // Dtor destroys the dialog if still shown.
+    virtual ~wxPreferencesEditor();
 
     // Add a new page to the editor. The editor takes ownership of the page
     // and won't delete it until it is destroyed itself.