made wxTreeTraversal and wxIDropSources dtors virtual (patch 1311828)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-11-26 13:08:09 +00:00
parent 9ad34f611f
commit cc11ded1ae
2 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ class wxIDropSource : public IDropSource
{
public:
wxIDropSource(wxDropSource *pDropSource);
virtual ~wxIDropSource() { }
DECLARE_IUNKNOWN_METHODS;

View File

@@ -311,6 +311,11 @@ public:
m_tree = tree;
}
// give it a virtual dtor: not really needed as the class is never used
// polymorphically and not even allocated on heap at all, but this is safer
// (in case it ever is) and silences the compiler warnings for now
virtual ~wxTreeTraversal() { }
// do traverse the tree: visit all items (recursively by default) under the
// given one; return true if all items were traversed or false if the
// traversal was aborted because OnVisit returned false