]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress (harmless) gcc warning about non-virtual dtor in a class with virtual functions
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Nov 2007 21:49:26 +0000 (21:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Nov 2007 21:49:26 +0000 (21:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textentry.cpp

index e3afd0eae06c1904302eae9e4caee9220447c712..65fbc3031f3bf270cdd24577f7dfeddb29f0e160 100644 (file)
@@ -140,6 +140,13 @@ public:
     }
 
 private:
+    // dtor doesn't have to be virtual as we're only ever deleted from our own
+    // Release() and are not meant to be derived form anyhow, but making it
+    // virtual silences gcc warnings; making it private makes it impossible to
+    // (mistakenly) delete us directly instead of calling Release()
+    virtual ~wxIEnumString() { }
+
+
     const wxArrayString m_strings;
     unsigned m_index;