QTest::toString benchmark: do not pass a template type parameter

Let it to be deduced, otherwise it may force instantiations which
are ill-formed.

Change-Id: I3ce674128d96a48ad6883e265734ff330645dd75
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2022-05-27 01:05:09 +02:00
parent 0083cde53e
commit f8c5f4b7b5

View File

@ -70,7 +70,7 @@ void tst_toString::numeric()
QFETCH(T, datum);
QBENCHMARK {
auto tst = QTest::toString<T>(datum);
auto tst = QTest::toString(datum);
delete [] tst;
}
}