suppress (harmless) gcc warning about non-virtual dtor in a class with virtual functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user