X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f83a4540d1044f56b00147303786decd12a2dc2..9cf99fc093f9c45b6b5d8d8b357699d826c9916a:/include/wx/motif/colour.h?ds=sidebyside diff --git a/include/wx/motif/colour.h b/include/wx/motif/colour.h index 893cd7afa2..238d46cfe1 100644 --- a/include/wx/motif/colour.h +++ b/include/wx/motif/colour.h @@ -62,9 +62,9 @@ public: int GetPixel() const { return m_pixel; }; void SetPixel(int pixel) { m_pixel = pixel; m_isInit = TRUE; }; - inline bool operator == (const wxColour& colour) { return (m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue); } + inline bool operator == (const wxColour& colour) const { return (m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue); } - inline bool operator != (const wxColour& colour) { return (!(m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue)); } + inline bool operator != (const wxColour& colour) const { return (!(m_red == colour.m_red && m_green == colour.m_green && m_blue == colour.m_blue)); } // Allocate a colour, or nearest colour, using the given display. // If realloc is TRUE, ignore the existing pixel, otherwise just return