summaryrefslogtreecommitdiff
path: root/tests/auto/qsvgrenderer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-05-20 11:14:43 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-05-20 11:14:43 +0200
commit2965bad67fa9bcaceab6da19420bc173902b6df2 (patch)
treeb6fdd4d1d3834a77811ec91d62caa801df5ed0cd /tests/auto/qsvgrenderer
parent8504cc4c91df0d9458c14b4c5cedbd5fe1ea7ab6 (diff)
downloadqtsvg-2965bad67fa9bcaceab6da19420bc173902b6df2.tar.gz
Fix compile warning in tests.
Diffstat (limited to 'tests/auto/qsvgrenderer')
-rw-r--r--tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
index 9fbf2a0..2f70d3d 100644
--- a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
+++ b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
@@ -426,7 +426,7 @@ static bool diffIsSmallEnough(double diff, double norm)
return diff <= 1e-12 * norm;
}
-static bool diffIsSmallEnough(float diff, float norm)
+static inline bool diffIsSmallEnough(float diff, float norm)
{
return diff <= 1e-5 * norm;
}
@@ -625,7 +625,7 @@ void tst_QSvgRenderer::gradientRefs()
"</defs>"
"</svg>"
};
- for (int i = 0 ; i < sizeof(svgs) / sizeof(svgs[0]) ; ++i)
+ for (size_t i = 0 ; i < sizeof(svgs) / sizeof(svgs[0]) ; ++i)
{
QByteArray data = svgs[i];
QSvgRenderer renderer(data);