diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-16 13:31:52 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-18 13:11:16 +0200 |
commit | 77886b496d36bfe038372faca76ea8516e7579d0 (patch) | |
tree | 6866358e1b070862b34bd6013f66c54bc0b4f28b /tests/auto/quick/qquicktableview/tst_qquicktableview.cpp | |
parent | 5ba3db2126cc97232e8f48d967fe30e39e339669 (diff) |
Quick item view tests: fix compile warning
Don't use QCOMPARE for a true/false test, use QVERIFY. This conveniently
fixes the (bogus, perhaps) compiler warning with MSVC about comparing
a quint32 (the underlying type of the polishScheduled bitfield) with a
bool.
Pick-to: 6.5
Change-Id: Ib273ee30906e09955e849e65af2b7ff8ce3e2512
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
-rw-r--r-- | tests/auto/quick/qquicktableview/tst_qquicktableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp index 46b6dc03f4..1869539c36 100644 --- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp +++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp @@ -2453,7 +2453,7 @@ void tst_QQuickTableView::checkChangingModelFromDelegate() // And since the QML code tried to add another row as well, we // expect rebuildScheduled to be true, and a polish event to be pending. QVERIFY(tableViewPrivate->scheduledRebuildOptions); - QCOMPARE(tableViewPrivate->polishScheduled, true); + QVERIFY(tableViewPrivate->polishScheduled); WAIT_UNTIL_POLISHED; // After handling the polish event, we expect also the third row to now be added |