Code

operator!=: new. (Calls existing operator==.)
authorpjrm <pjrm@users.sourceforge.net>
Sun, 12 Mar 2006 02:26:04 +0000 (02:26 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Sun, 12 Mar 2006 02:26:04 +0000 (02:26 +0000)
src/color-rgba.h

index 24bc63b521ec07464f320e1f6fd4f67cab0953fc..18c8b14e9be86988f31beee30a5e9b90c567f3a9 100644 (file)
@@ -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);
     }
 
     /**