summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtessellator/tst_tessellator.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-19 08:59:02 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-19 10:44:13 (GMT)
commit01fd310f47a4a0cf7a72366105cc36e07550494c (patch)
tree46cd30821121e8ac79222650646d97182e676104 /tests/auto/qtessellator/tst_tessellator.cpp
parente5608cd95684a010510b136361415d47cfc53e8a (diff)
downloadQt-01fd310f47a4a0cf7a72366105cc36e07550494c.zip
Qt-01fd310f47a4a0cf7a72366105cc36e07550494c.tar.gz
Qt-01fd310f47a4a0cf7a72366105cc36e07550494c.tar.bz2
fix compiler warnings when qreal == float in tessellator autotest
Reviewed-by: mauricek
Diffstat (limited to 'tests/auto/qtessellator/tst_tessellator.cpp')
-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 8958ac3..8899285 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;
}