Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: make operator== const for use with QList

Halla Remptbf9fca332307
diff --git a/libs/pigment/resources/KoStopGradient.h b/libs/pigment/resources/KoStopGradient.h
index f34eb42d40..1583ad556c 100644
--- a/libs/pigment/resources/KoStopGradient.h
+++ b/libs/pigment/resources/KoStopGradient.h
@@ -36,7 +36,7 @@ struct KoGradientStop : public boost::equality_comparable<KoGradientStop>
position = _position;
}
- bool operator == (const KoGradientStop& other)
+ bool operator == (const KoGradientStop& other) const
{
return this->type == other.type && this->color == other.color && this->position == other.position;
}