From: pjrm Date: Sun, 12 Mar 2006 02:26:04 +0000 (+0000) Subject: operator!=: new. (Calls existing operator==.) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef50b7e91962ccf960f2b397aa52f6c08c2fbbba;p=inkscape.git operator!=: new. (Calls existing operator==.) --- 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); } /**