X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e87870780586104029acf7b5dd28e26260bdb0f..d18868bb9b22d6f0fd1010779ddab14a6ab398d8:/include/wx/os2/pen.h diff --git a/include/wx/os2/pen.h b/include/wx/os2/pen.h index 900838c450..17c6822ac0 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