diff qt/d2/qt/core/QPoint.d @ 325:b460cd08041f signals

dmd 2.037 opEquals bug-feature
author eldar1@eldar1-laptop
date Wed, 30 Dec 2009 11:25:07 +0000
parents 463563fc9e17
children
line wrap: on
line diff
--- a/qt/d2/qt/core/QPoint.d	Tue Dec 29 02:48:09 2009 +0500
+++ b/qt/d2/qt/core/QPoint.d	Wed Dec 30 11:25:07 2009 +0000
@@ -61,7 +61,7 @@
     QPoint opMulAssign(qreal c)
     { xp = qRound(xp*c); yp = qRound(yp*c); return this; }
 
-    bool opEquals(ref QPoint p)
+    bool opEquals(ref const QPoint p) const
     { return xp == p.xp && yp == p.yp; }
 
     QPoint opAdd(ref QPoint p)
@@ -184,7 +184,7 @@
     QPointF opMulAssign(qreal c)
     { xp*=c; yp*=c; return this; }
 
-    bool opEquals(ref QPointF p)
+    bool opEquals(ref const QPointF p) const
     { return qFuzzyCompare(xp, p.xp) && qFuzzyCompare(yp, p.yp); }
 
     QPointF opAdd(ref QPointF p)