From ae598116f493abdbf0434af1ee54e61ca178c40b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 14 Jun 2019 19:10:43 +0200 Subject: [PATCH] Color: Add equality operators. --- SharedGraphics/Color.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SharedGraphics/Color.h b/SharedGraphics/Color.h index d04635999d..630771087f 100644 --- a/SharedGraphics/Color.h +++ b/SharedGraphics/Color.h @@ -102,6 +102,16 @@ public: RGBA32 value() const { return m_value; } + bool operator==(const Color& other) const + { + return m_value == other.m_value; + } + + bool operator!=(const Color& other) const + { + return m_value != other.m_value; + } + String to_string() const; private: