From 2f30482a2110eab3c557d2995c2d2f5fba10a2d1 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 22 Jan 2022 21:21:03 +0100 Subject: QTransform benchmark: measure what was promised MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function name suggests that the *= operator is to be benchmarked, not simple multiplication. Use the correct operator. Change-Id: I6718e8aea640a153083858b39963199e7bab26e9 Reviewed-by: Fabian Kosmale Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit b084c885dbaf1c89189c03a9466984648c0f5835) Reviewed-by: Qt Cherry-pick Bot --- tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp b/tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp index 9b4f151362..68054f1b88 100644 --- a/tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp +++ b/tests/benchmarks/gui/painting/qtransform/tst_qtransform.cpp @@ -335,7 +335,7 @@ void tst_QTransform::operatorMultiplyEqualScalar() QFETCH(QTransform, transform); QTransform x = transform; QBENCHMARK { - x * 3; + x *= 3; } } -- cgit v1.2.3