diff qt/d2/qt/core/QSize.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/QSize.d	Tue Dec 29 02:48:09 2009 +0500
+++ b/qt/d2/qt/core/QSize.d	Wed Dec 30 11:25:07 2009 +0000
@@ -91,7 +91,7 @@
 	QSize opMulAssign(qreal c)
 	{ wd = qRound(wd*c); ht = qRound(ht*c); return this; }
 
-	bool opEquals(ref QSize s)
+	bool opEquals(ref const QSize s) const
 	{ return wd == s.wd && ht == s.ht; }
 
 	QSize opAdd(ref QSize s)
@@ -225,7 +225,7 @@
 	QSizeF opMulAssign(qreal c)
 	{ wd *= c; ht *= c; return this; }
 
-	bool opEquals(ref QSizeF s)
+	bool opEquals(ref const QSizeF s) const
 	{ return qFuzzyCompare(wd, s.wd) && qFuzzyCompare(ht, s.ht); }
 
 	QSizeF opAdd(ref QSizeF s)