X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..f9e5b1c786b132485fb0570755d693ff354f4418:/include/wx/os2/brush.h diff --git a/include/wx/os2/brush.h b/include/wx/os2/brush.h index 877ee04e51..c7657279d5 100644 --- a/include/wx/os2/brush.h +++ b/include/wx/os2/brush.h @@ -24,7 +24,7 @@ class WXDLLEXPORT wxBrushRefData: public wxGDIRefData public: wxBrushRefData(); wxBrushRefData(const wxBrushRefData& rData); - ~wxBrushRefData(); + virtual ~wxBrushRefData(); protected: int m_nStyle; @@ -45,7 +45,7 @@ public: wxBrush(); wxBrush(const wxColour& rCol, int nStyle = wxSOLID); wxBrush(const wxBitmap& rStipple); - ~wxBrush(); + virtual ~wxBrush(); inline bool operator == (const wxBrush& rBrush) const { return m_refData == rBrush.m_refData; } inline bool operator != (const wxBrush& rBrush) const { return m_refData != rBrush.m_refData; } @@ -61,7 +61,8 @@ public: inline wxBitmap* GetStipple(void) const { return (M_BRUSHDATA ? & M_BRUSHDATA->m_vStipple : 0); }; inline int GetPS(void) const { return (M_BRUSHDATA ? M_BRUSHDATA->m_hBrush : 0); }; - inline virtual bool Ok(void) const { return (m_refData != NULL) ; } + inline virtual bool Ok() const { return IsOk(); } + inline virtual bool IsOk(void) const { return (m_refData != NULL) ; } // // Implementation @@ -71,7 +72,7 @@ public: // Useful helper: create the brush resource // bool RealizeResource(void); - WXHANDLE GetResourceHandle(void) ; + virtual WXHANDLE GetResourceHandle(void) const; bool FreeResource(bool bForce = false); bool IsFree(void) const; void Unshare(void);