From fd48d426a3b6ba33da57e4987a9860128e0ad594 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 25 May 2022 20:36:07 +0200 Subject: tst_qquickflickable: fix UB (more % in format string than arguments) Provide the third argument. Amends 8068bde891eefe99a43deb83e58166b476f65225. Change-Id: I7f4b0043a64aae5e998309b9ea2332b6e86e2d74 Reviewed-by: Shawn Rutledge (cherry picked from commit 83f18c3191fd27ea66e0d4e9ade50e94ae8da091) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/quick/qquickflickable/tst_qquickflickable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3