Skip to content

Commit

Permalink
QTest::toString benchmark: do not pass a template type parameter
Browse files Browse the repository at this point in the history
Let it to be deduced, otherwise it may force instantiations which
are ill-formed.

Change-Id: I3ce674128d96a48ad6883e265734ff330645dd75
Reviewed-by: Marc Mutz <[email protected]>
  • Loading branch information
dangelog committed Jun 4, 2022
1 parent 0083cde commit f8c5f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmarks/testlib/tostring/tst_tostring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f8c5f4b

Please sign in to comment.