added missing virtual dtors to base classes (patch 1150945)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-24 14:33:32 +00:00
parent 4e4770405a
commit ed62f740a1
6 changed files with 12 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ class WXDLLIMPEXP_BASE wxStandardPathsBase;
class WXDLLIMPEXP_BASE wxAppTraitsBase class WXDLLIMPEXP_BASE wxAppTraitsBase
{ {
public: public:
// needed since this class declares virtual members
virtual ~wxAppTraitsBase() { }
// hooks for creating the global objects, may be overridden by the user // hooks for creating the global objects, may be overridden by the user
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------

View File

@@ -61,6 +61,9 @@ public:
(void)Create(window, size); (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 // Create() functions - same as ctor but returns the success code
// -------------------------------------------------------------- // --------------------------------------------------------------

View File

@@ -54,6 +54,8 @@ enum wxDirTraverseResult
class WXDLLIMPEXP_BASE wxDirTraverser class WXDLLIMPEXP_BASE wxDirTraverser
{ {
public: public:
/// a virtual dtor has been provided since this class has virtual members
virtual ~wxDirTraverser() { }
// called for each file found by wxDir::Traverse() // called for each file found by wxDir::Traverse()
// //
// return wxDIR_STOP or wxDIR_CONTINUE from here (wxDIR_IGNORE doesn't // return wxDIR_STOP or wxDIR_CONTINUE from here (wxDIR_IGNORE doesn't

View File

@@ -785,6 +785,7 @@ inline bool wxRect2DInt::operator != (const wxRect2DInt& rect) const
class wxTransform2D class wxTransform2D
{ {
public : public :
virtual ~wxTransform2D() { }
virtual void Transform( wxPoint2DInt* pt )const = 0; virtual void Transform( wxPoint2DInt* pt )const = 0;
virtual void Transform( wxRect2DInt* r ) const; virtual void Transform( wxRect2DInt* r ) const;
virtual wxPoint2DInt Transform( const wxPoint2DInt &pt ) const; virtual wxPoint2DInt Transform( const wxPoint2DInt &pt ) const;

View File

@@ -100,6 +100,8 @@ typedef void (*GSocketCallback)(GSocket *socket, GSocketEvent event,
class GSocketGUIFunctionsTable class GSocketGUIFunctionsTable
{ {
public: public:
// needed since this class declares virtual members
virtual ~GSocketGUIFunctionsTable() { }
virtual bool OnInit() = 0; virtual bool OnInit() = 0;
virtual void OnExit() = 0; virtual void OnExit() = 0;
virtual bool CanUseEventLoop() = 0; virtual bool CanUseEventLoop() = 0;

View File

@@ -104,6 +104,7 @@ private:
class WXDLLIMPEXP_HTML wxHtmlRenderingStyle class WXDLLIMPEXP_HTML wxHtmlRenderingStyle
{ {
public: public:
virtual ~wxHtmlRenderingStyle() {}
virtual wxColour GetSelectedTextColour(const wxColour& clr) = 0; virtual wxColour GetSelectedTextColour(const wxColour& clr) = 0;
virtual wxColour GetSelectedTextBgColour(const wxColour& clr) = 0; virtual wxColour GetSelectedTextBgColour(const wxColour& clr) = 0;
}; };