summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/math3d/qmatrix4x4
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-03-29 10:16:01 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2021-03-29 16:06:25 +0200
commitdfe86d0150da443e807d66f4f945fec001929666 (patch)
treeee78ca4d7bfcf78df783ad9335109dba901e4ed7 /tests/benchmarks/gui/math3d/qmatrix4x4
parent5925daf969c8f271458ca81e49f0e675a4c5c912 (diff)
Fix some warnings
Change-Id: I546300b4e630a2234c83c03ece65a08f4c8652d2 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/benchmarks/gui/math3d/qmatrix4x4')
-rw-r--r--tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp b/tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp
index db9f2bbfb7..528256d7df 100644
--- a/tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp
+++ b/tests/benchmarks/gui/math3d/qmatrix4x4/tst_qmatrix4x4.cpp
@@ -210,7 +210,8 @@ void tst_QMatrix4x4::mapVector3D()
m1.optimize();
QBENCHMARK {
- result = m1 * v;
+ result = m1.map(v);
+ Q_UNUSED(result)
}
// Force the result to be stored so the compiler doesn't
@@ -234,7 +235,8 @@ void tst_QMatrix4x4::mapVector2D()
m1.optimize();
QBENCHMARK {
- result = m1 * v;
+ result = m1.map(v);
+ Q_UNUSED(result)
}
// Force the result to be stored so the compiler doesn't