summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-05-27 01:05:09 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-06-04 12:40:05 +0200
commitf8c5f4b7b57afb3c808a1f3d061eda04960475d8 (patch)
tree05a1968425deb0cda7d79c3e784ab1a49fa102f2 /tests/benchmarks
parent0083cde53e38531ae77b74435218d94344a50323 (diff)
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>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/testlib/tostring/tst_tostring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/testlib/tostring/tst_tostring.cpp b/tests/benchmarks/testlib/tostring/tst_tostring.cpp
index bab0faba18..913a0337c6 100644
--- a/tests/benchmarks/testlib/tostring/tst_tostring.cpp
+++ b/tests/benchmarks/testlib/tostring/tst_tostring.cpp
@@ -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;
}
}