X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f53523161202c06e848824c2ec2817cb9878180..a76d8a29531683cc1c82294ce0c894886f09c404:/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); }