X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f53523161202c06e848824c2ec2817cb9878180..bdbd4e96121a470b518420cff4c2dfea20f2b7a6:/include/wx/os2/pen.h diff --git a/include/wx/os2/pen.h b/include/wx/os2/pen.h index dfee541b9b..e89c11a158 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); } @@ -65,10 +68,7 @@ public: // Override in order to recreate the pen // void SetColour(const wxColour& rColour); - void SetColour( unsigned char cRed - ,unsigned char cGreen - ,unsigned char cBlue - ); + void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue); void SetWidth(int nWidth); void SetStyle(int nStyle); @@ -97,7 +97,7 @@ public: // Useful helper: create the brush resource // bool RealizeResource(void); - bool FreeResource(bool bForce = FALSE); + bool FreeResource(bool bForce = false); WXHANDLE GetResourceHandle(void); bool IsFree(void) const; void Unshare(void);