summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-19 10:59:02 +0200
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-19 12:44:13 +0200
commit01fd310f47a4a0cf7a72366105cc36e07550494c (patch)
tree46cd30821121e8ac79222650646d97182e676104 /tests
parente5608cd95684a010510b136361415d47cfc53e8a (diff)
downloadqt4-tools-01fd310f47a4a0cf7a72366105cc36e07550494c.tar.gz
fix compiler warnings when qreal == float in tessellator autotest
Reviewed-by: mauricek
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtessellator/tst_tessellator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtessellator/tst_tessellator.cpp b/tests/auto/qtessellator/tst_tessellator.cpp
index 8958ac3c89..8899285899 100644
--- a/tests/auto/qtessellator/tst_tessellator.cpp
+++ b/tests/auto/qtessellator/tst_tessellator.cpp
@@ -218,8 +218,8 @@ void tst_QTessellator::testArc()
const int stop = 1000;
#endif
for (int i = 0; i < stop; ++i) {
- mat.rotate(.01);
- mat.scale(.99, .99);
+ mat.rotate(qreal(.01));
+ mat.scale(qreal(.99), qreal(.99));
QPolygonF poly = arc.at(0);
QPolygonF vec = poly * mat;
QVERIFY(test_arc(vec, true));
@@ -361,11 +361,11 @@ void tst_QTessellator::testRects()
QVector<QPointF> v(5);
for (int i = 0; i < 5; ++i)
v[i] = vec[5 * rect + i];
- if (!test(v.data(), v.size(), false, test_tessellate_polygon_rect, 0.05)) {
+ if (!test(v.data(), v.size(), false, test_tessellate_polygon_rect, qreal(0.05))) {
simplifyTestFailure(v, false);
++failures;
}
- if (!test(v.data(), v.size(), true, test_tessellate_polygon_rect, 0.05)) {
+ if (!test(v.data(), v.size(), true, test_tessellate_polygon_rect, qreal(0.05))) {
simplifyTestFailure(v, true);
++failures;
}