Make wxTextCtrlOleCallback destructor virtual to avoid g++ warnings.

This class doesn't really need a virtual dtor as it's never used
polymorphically, but add it to avoid g++ warnings about it.

(this is a backport of 8ad1e2698f from master)
This commit is contained in:
Vadim Zeitlin
2015-06-12 20:33:35 +02:00
parent 1e2af26e47
commit 70da6f7488

View File

@@ -169,7 +169,7 @@ class wxTextCtrlOleCallback : public IRichEditOleCallback
{
public:
wxTextCtrlOleCallback(wxTextCtrl *text) : m_textCtrl(text), m_menu(NULL) {}
~wxTextCtrlOleCallback() { DeleteContextMenuObject(); }
virtual ~wxTextCtrlOleCallback() { DeleteContextMenuObject(); }
STDMETHODIMP ContextSensitiveHelp(BOOL WXUNUSED(enterMode)) { return E_NOTIMPL; }
STDMETHODIMP DeleteObject(LPOLEOBJECT WXUNUSED(oleobj)) { return E_NOTIMPL; }