diff options
author | Volker Hilsheimer <[email protected]> | 2022-09-03 11:50:14 +0200 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2022-09-18 04:32:10 +0800 |
commit | 7bcfc16ca2790b387b734f1f37eb43198f05994a (patch) | |
tree | 7f0013cbd3a59315c2e8b26a0d6d6196d5741038 /tests/benchmarks | |
parent | 843b8d126d87697379f8bc35a2b19b8cc169336a (diff) |
Fix warning from ignoring return of [nodiscard] method
Compiler warns:
ignoring return value of function declared with 'nodiscard' attribute
[-Wunused-result]
Pick-to: 6.4
Change-Id: If10d41fad7dc77b36eecc8725de178b0908f32de
Reviewed-by: Mitch Curtis <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp b/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp index 660be4ad4a..82259269d9 100644 --- a/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp +++ b/tests/benchmarks/quickcontrols2/creationtime/tst_creationtime.cpp @@ -57,7 +57,7 @@ static void doBenchmark(QQuickStyleHelper &styleHelper, const QUrl &url) QCOMPARE(styleAndFileName.size(), 2); QString style = styleAndFileName.first(); style[0] = style.at(0).toUpper(); - styleHelper.updateStyle(style); + QVERIFY(styleHelper.updateStyle(style)); QQmlComponent component(styleHelper.engine.data()); component.loadUrl(url); |