From ef50b7e91962ccf960f2b397aa52f6c08c2fbbba Mon Sep 17 00:00:00 2001 From: pjrm Date: Sun, 12 Mar 2006 02:26:04 +0000 Subject: [PATCH] operator!=: new. (Calls existing operator==.) --- src/color-rgba.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/color-rgba.h b/src/color-rgba.h index 24bc63b52..18c8b14e9 100644 --- a/src/color-rgba.h +++ b/src/color-rgba.h @@ -114,9 +114,13 @@ public: bool operator== (const ColorRGBA other) const { for (int i = 0; i < 4; i++) { if (_c[i] != other[i]) - return FALSE; + return false; } - return TRUE; + return true; + } + + bool operator!=(ColorRGBA const &o) const { + return !(*this == o); } /** -- 2.30.2