X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f53523161202c06e848824c2ec2817cb9878180..d11e8786ed13b72766eea18cb577cc00f9f08f41:/include/wx/os2/pen.h diff --git a/include/wx/os2/pen.h b/include/wx/os2/pen.h index dfee541b9b..fe4c3460ef 100644 --- a/include/wx/os2/pen.h +++ b/include/wx/os2/pen.h @@ -55,9 +55,12 @@ public: inline wxPen(const wxPen& rPen) { Ref(rPen); } ~wxPen(); - inline wxPen& operator = (const wxPen& rPen) { if (*this == rPen) return (*this); Ref(rPen); return *this; } - inline bool operator == (const wxPen& rPen) { return m_refData == rPen.m_refData; } - inline bool operator != (const wxPen& rPen) { return m_refData != rPen.m_refData; } + inline wxPen& operator = (const wxPen& rPen) + { if (*this == rPen) return (*this); Ref(rPen); return *this; } + 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); }