summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qeasingcurve.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-04-13 11:14:15 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-16 22:33:50 +0200
commit6e1594e456a6d4540195be3b46c345256da54841 (patch)
tree821e1dfd86bd247694da51f1648bea91014e5070 /src/corelib/tools/qeasingcurve.cpp
parent5ba9c07dddc354c6904a9522fc4fed666aa315a0 (diff)
Make {TCBPoint,QEasingCurveFunction}::operator==() const
This is needed to use the classes with standard algorithms and is the Right Thing anyway. Change-Id: I13d1e0bfabbd216319cc138f11a9b3240f093052 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qeasingcurve.cpp')
-rw-r--r--src/corelib/tools/qeasingcurve.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qeasingcurve.cpp b/src/corelib/tools/qeasingcurve.cpp
index 81778f908f1..1d6514eb3de 100644
--- a/src/corelib/tools/qeasingcurve.cpp
+++ b/src/corelib/tools/qeasingcurve.cpp
@@ -349,7 +349,7 @@ struct TCBPoint {
TCBPoint() {}
TCBPoint(QPointF point, qreal t, qreal c, qreal b) : _point(point), _t(t), _c(c), _b(b) {}
- bool operator==(const TCBPoint& other)
+ bool operator==(const TCBPoint &other) const
{
return _point == other._point &&
qFuzzyCompare(_t, other._t) &&
@@ -373,7 +373,7 @@ public:
virtual ~QEasingCurveFunction() {}
virtual qreal value(qreal t);
virtual QEasingCurveFunction *copy() const;
- bool operator==(const QEasingCurveFunction& other);
+ bool operator==(const QEasingCurveFunction &other) const;
Type _t;
qreal _p;
@@ -397,7 +397,7 @@ QEasingCurveFunction *QEasingCurveFunction::copy() const
return rv;
}
-bool QEasingCurveFunction::operator==(const QEasingCurveFunction& other)
+bool QEasingCurveFunction::operator==(const QEasingCurveFunction &other) const
{
return _t == other._t &&
qFuzzyCompare(_p, other._p) &&