X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e87870780586104029acf7b5dd28e26260bdb0f..ce4b7808ca940be201422a066de141ca12f13863:/include/wx/os2/pen.h?ds=sidebyside diff --git a/include/wx/os2/pen.h b/include/wx/os2/pen.h index 900838c450..233016dc12 100644 --- a/include/wx/os2/pen.h +++ b/include/wx/os2/pen.h @@ -25,7 +25,7 @@ class WXDLLEXPORT wxPenRefData: public wxGDIRefData public: wxPenRefData(); wxPenRefData(const wxPenRefData& rData); - ~wxPenRefData(); + virtual ~wxPenRefData(); protected: int m_nWidth; @@ -54,14 +54,15 @@ public: wxPen( const wxBitmap& rStipple ,int nWidth ); - ~wxPen(); + virtual ~wxPen(); inline bool operator == (const wxPen& rPen) const { return m_refData == rPen.m_refData; } inline bool operator != (const wxPen& rPen) const { return m_refData != rPen.m_refData; } - virtual bool Ok(void) const { return (m_refData != NULL); } + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk(void) const { return (m_refData != NULL); } // // Override in order to recreate the pen @@ -104,7 +105,7 @@ public: // bool RealizeResource(void); bool FreeResource(bool bForce = false); - WXHANDLE GetResourceHandle(void); + virtual WXHANDLE GetResourceHandle(void) const; bool IsFree(void) const; void Unshare(void);