]> git.saurik.com Git - wxWidgets.git/commitdiff
made wxTreeTraversal and wxIDropSources dtors virtual (patch 1311828)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Nov 2005 13:08:09 +0000 (13:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Nov 2005 13:08:09 +0000 (13:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/dropsrc.cpp
src/msw/treectrl.cpp

index cda175f0549dd76de0ff686dacbe459dcb762ea0..7b66b0c3506c8c23f5809a88fe3cf026345898a5 100644 (file)
@@ -53,6 +53,7 @@ class wxIDropSource : public IDropSource
 {
 public:
   wxIDropSource(wxDropSource *pDropSource);
+  virtual ~wxIDropSource() { }
 
   DECLARE_IUNKNOWN_METHODS;
 
@@ -64,7 +65,7 @@ private:
   DWORD         m_grfInitKeyState;  // button which started the d&d operation
   wxDropSource *m_pDropSource;      // pointer to C++ class we belong to
 
-    DECLARE_NO_COPY_CLASS(wxIDropSource)
+  DECLARE_NO_COPY_CLASS(wxIDropSource)
 };
 
 // ============================================================================
index e0a4d592b30188881323538e4314d748be507e52..40f9f53105811ecb2198dafee04d52baad85d0f9 100644 (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