Commit 417e7d0a authored by Cyrille Berger's avatar Cyrille Berger

constify the operator== (thanks to pinotree for noticing it)

svn path=/trunk/koffice/; revision=678632
parent 6ad878a7
......@@ -133,7 +133,7 @@ KoColor & KoColor::operator=(const KoColor & rhs)
return * this;
bool KoColor::operator==(const KoColor &other)
bool KoColor::operator==(const KoColor &other) const
if(colorSpace() != other.colorSpace()) return false;
return memcmp(d->data, other.d->data, d->colorSpace->pixelSize()) == 0;
......@@ -65,7 +65,7 @@ public:
KoColor &operator=(const KoColor &other);
bool operator==(const KoColor &other);
bool operator==(const KoColor &other) const;
/// return the current colorSpace
KoColorSpace * colorSpace() const;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment