summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2006-03-12 02:26:04 +0000
committerpjrm <pjrm@users.sourceforge.net>2006-03-12 02:26:04 +0000
commitb20d6a60dfeca0dce663c6a2f16397b8eba529bb (patch)
treec170862a7922ab78bcfee3e89c9690c1c56baed2 /src
parentexperiment with moving release beofre extraction of object from document tree (diff)
downloadinkscape-b20d6a60dfeca0dce663c6a2f16397b8eba529bb.tar.gz
inkscape-b20d6a60dfeca0dce663c6a2f16397b8eba529bb.zip
operator!=: new. (Calls existing operator==.)
(bzr r223)
Diffstat (limited to 'src')
-rw-r--r--src/color-rgba.h8
1 files 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);
}
/**