diff --git a/src/testlib/qxmltestlogger.cpp b/src/testlib/qxmltestlogger.cpp
index 716a99d80d..89c4cbb765 100644
--- a/src/testlib/qxmltestlogger.cpp
+++ b/src/testlib/qxmltestlogger.cpp
@@ -198,7 +198,7 @@ static const char *incidentFormatString(bool noDescription, bool noTag)
static const char *benchmarkResultFormatString()
{
- return "\n";
+ return "\n";
}
static const char *messageFormatString(bool noDescription, bool noTag)
@@ -266,13 +266,12 @@ void QXmlTestLogger::addBenchmarkResult(const QBenchmarkResult &result)
benchmarkMetricName(result.metric));
xmlQuote("edTag, result.context.tag.toUtf8().constData());
- const qreal valuePerIteration = qreal(result.value) / qreal(result.iterations);
QTest::qt_asprintf(
&buf,
QTest::benchmarkResultFormatString(),
quotedMetric.constData(),
quotedTag.constData(),
- QByteArray::number(valuePerIteration).constData(), //no 64-bit qsnprintf support
+ result.value / double(result.iterations),
result.iterations);
outputString(buf.constData());
}