added missing virtual dtors to base classes (patch 1150945)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Feb 2005 14:33:32 +0000 (14:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 24 Feb 2005 14:33:32 +0000 (14:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/apptrait.h
include/wx/caret.h
include/wx/dir.h
include/wx/geometry.h
include/wx/gsocket.h
include/wx/html/htmlcell.h

index 6ef915d9b1fd02ceab3bacaee6b25ec11abd7076..38097535f367ac5e23440a7e6df1a89220ed8b51 100644 (file)
@@ -54,6 +54,9 @@ class WXDLLIMPEXP_BASE wxStandardPathsBase;
 class WXDLLIMPEXP_BASE wxAppTraitsBase
 {
 public:
+    // needed since this class declares virtual members
+    virtual ~wxAppTraitsBase() { }
+
     // hooks for creating the global objects, may be overridden by the user
     // ------------------------------------------------------------------------
 
index 16caa514d81e9146183013a8bf5ec5e857be43f5..ed761aacc3b2cd46273dcdb059ea903c15bfdd1f 100644 (file)
@@ -61,6 +61,9 @@ public:
         (void)Create(window, size);
     }
 
+    // a virtual dtor has been provided since this class has virtual members
+    virtual ~wxCaretBase() { }
+
     // Create() functions - same as ctor but returns the success code
     // --------------------------------------------------------------
 
index e1a525cfc2a42d417e4c8dca558e2fe2fb7152e2..dba3313204bd0e7c4f316dc2f7d19e9c05e6486b 100644 (file)
@@ -54,6 +54,8 @@ enum wxDirTraverseResult
 class WXDLLIMPEXP_BASE wxDirTraverser
 {
 public:
+    /// a virtual dtor has been provided since this class has virtual members
+    virtual ~wxDirTraverser() { }
     // called for each file found by wxDir::Traverse()
     //
     // return wxDIR_STOP or wxDIR_CONTINUE from here (wxDIR_IGNORE doesn't
index 1dedc55fc5c0df2bd5c1a7c92bcfe694dec8fb67..b9d3c7c502b9c7e2e6f578ebb2ea5003f5dcbb99 100644 (file)
@@ -785,6 +785,7 @@ inline bool wxRect2DInt::operator != (const wxRect2DInt& rect) const
 class wxTransform2D
 {
 public :
+    virtual ~wxTransform2D() { }
     virtual void                    Transform( wxPoint2DInt* pt )const  = 0;
     virtual void                    Transform( wxRect2DInt* r ) const;
     virtual wxPoint2DInt    Transform( const wxPoint2DInt &pt ) const;
index a527a8586a9a5f4fbcd36e02e4824cd62659cdd8..9ace677b54605ffe030cdb18c4cf1657d73e6863 100644 (file)
@@ -100,6 +100,8 @@ typedef void (*GSocketCallback)(GSocket *socket, GSocketEvent event,
 class GSocketGUIFunctionsTable
 {
 public:
+    // needed since this class declares virtual members
+    virtual ~GSocketGUIFunctionsTable() { }
     virtual bool OnInit() = 0;
     virtual void OnExit() = 0;
     virtual bool CanUseEventLoop() = 0;
index 046fb2085e7ab58d5a7dca2a8092b769167daffb..09e3cd29b060f95af62fd5fc270d2538438d1709 100644 (file)
@@ -104,6 +104,7 @@ private:
 class WXDLLIMPEXP_HTML wxHtmlRenderingStyle
 {
 public:
+    virtual ~wxHtmlRenderingStyle() {}
     virtual wxColour GetSelectedTextColour(const wxColour& clr) = 0;
     virtual wxColour GetSelectedTextBgColour(const wxColour& clr) = 0;
 };