diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-25 20:36:07 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-26 12:57:35 +0200 |
commit | 83f18c3191fd27ea66e0d4e9ade50e94ae8da091 (patch) | |
tree | c5e458ebf2493b9bb6e6f35779ef6a217ef0c1eb /tests | |
parent | cafc60c3bfb2d60360b9ca536430e829f2daae96 (diff) |
tst_qquickflickable: fix UB (more % in format string than arguments)
Provide the third argument.
Amends 8068bde891eefe99a43deb83e58166b476f65225.
Pick-to: 6.3 6.2
Change-Id: I7f4b0043a64aae5e998309b9ea2332b6e86e2d74
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests')
-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 067fdd5b77..a1c38f2426 100644 --- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp +++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp @@ -2816,7 +2816,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); |