summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-04 03:31:37 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-04 03:31:37 (GMT)
commitce14a4a0bc290018e597d0a4f8e9f279c63d4cc0 (patch)
tree9697d7ba7042962d78a7f3527e25d377a2801e78 /tests/auto
parent79c6049ccaae4434add40d35b3e47a83ff4a102a (diff)
downloadQt-ce14a4a0bc290018e597d0a4f8e9f279c63d4cc0.zip
Qt-ce14a4a0bc290018e597d0a4f8e9f279c63d4cc0.tar.gz
Qt-ce14a4a0bc290018e597d0a4f8e9f279c63d4cc0.tar.bz2
Remove QMatrix4x4& return values in response to API review feedback
Reviewed-by: Sarah Smith
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qvariant/tst_qvariant.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qvariant/tst_qvariant.cpp b/tests/auto/qvariant/tst_qvariant.cpp
index e2a606f..3d68a73 100644
--- a/tests/auto/qvariant/tst_qvariant.cpp
+++ b/tests/auto/qvariant/tst_qvariant.cpp
@@ -1432,8 +1432,10 @@ void tst_QVariant::matrix4x4()
QVariant variant;
QMatrix4x4 matrix = qVariantValue<QMatrix4x4>(variant);
QVERIFY(matrix.isIdentity());
- qVariantSetValue(variant, QMatrix4x4().scale(2.0));
- QCOMPARE(QMatrix4x4().scale(2.0), qVariantValue<QMatrix4x4>(variant));
+ QMatrix4x4 m;
+ m.scale(2.0f);
+ qVariantSetValue(variant, m);
+ QCOMPARE(m, qVariantValue<QMatrix4x4>(variant));
void *mmatrix = QMetaType::construct(QVariant::Matrix4x4, 0);
QVERIFY(mmatrix);