diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-25 20:36:07 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-05-26 14:51:45 +0000 |
commit | fd48d426a3b6ba33da57e4987a9860128e0ad594 (patch) | |
tree | af8e6722473d3bfcee0590d404883e0ddb6f8033 | |
parent | b01f1fbe81bb42c5635152fd957ac670ddc146c4 (diff) |
tst_qquickflickable: fix UB (more % in format string than arguments)
Provide the third argument.
Amends 8068bde891eefe99a43deb83e58166b476f65225.
Change-Id: I7f4b0043a64aae5e998309b9ea2332b6e86e2d74
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 83f18c3191fd27ea66e0d4e9ade50e94ae8da091)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/quick/qquickflickable/tst_qquickflickable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp index 9682079e84..1035aeeb38 100644 --- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp +++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp @@ -2815,7 +2815,7 @@ void tst_qquickflickable::flickWhenRotated_data() for (const auto fr : rotations) { if (pr <= 90) { for (const auto s : scales) - QTest::addRow("parent: %g, flickable: %g, scale: %g", pr, fr) << pr << fr << s; + QTest::addRow("parent: %g, flickable: %g, scale: %g", pr, fr, s) << pr << fr << s; } else { // don't bother trying every scale with every set of rotations, to save time QTest::addRow("parent: %g, flickable: %g, scale: 1", pr, fr) << pr << fr << qreal(1); |