X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96506d1d5826c388c94ce36bbafac516fb8cdbfd..d91eb06e9c6626c246e4b18587165bcda5126644:/src/msw/textentry.cpp diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index e3afd0eae0..65fbc3031f 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -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;