QTransform benchmark: measure what was promised

The function name suggests that the *= operator is to be benchmarked,
not simple multiplication.

Use the correct operator.

Pick-to: 6.3 6.2 5.15
Change-Id: I6718e8aea640a153083858b39963199e7bab26e9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Marc Mutz 2022-01-22 21:21:03 +01:00
parent af2d9bc3c4
commit b084c885db

View File

@ -335,7 +335,7 @@ void tst_QTransform::operatorMultiplyEqualScalar()
QFETCH(QTransform, transform); QFETCH(QTransform, transform);
QTransform x = transform; QTransform x = transform;
QBENCHMARK { QBENCHMARK {
x * 3; x *= 3;
} }
} }