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:
@@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
|
@@ -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
|
||||
// --------------------------------------------------------------
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user