summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-01-16 17:38:45 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-01-18 14:21:00 +0000
commiteba886c32ff5db1a0a737d33447a1f5c97919d57 (patch)
treefafae3bf0ef0054c0b14ae7e146e7dbbfb92cbac /tests/auto/other/qaccessibility/tst_qaccessibility.cpp
parentf4a098c6351fd2d14a2d70b7014697d326e83ba7 (diff)
tst_qaccessibility.cpp: Fix warnings about assignment used as truth value
tst_qaccessibility.cpp: In member function 'void tst_QAccessibility::treeTest()': tst_qaccessibility.cpp:3005:75: warning: suggest parentheses around assignment used as truth value [-Wparentheses] tst_qaccessibility.cpp:3008:75: warning: suggest parentheses around assignment used as truth value [-Wparentheses] tst_qaccessibility.cpp: In member function 'void tst_QAccessibility::tableTest()': tst_qaccessibility.cpp:3133:75: warning: suggest parentheses around assignment used as truth value [-Wparentheses] Change-Id: I175af3215258c70da8284907f5ddfe95abf41029 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/other/qaccessibility/tst_qaccessibility.cpp')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index 11baee7335..4f60fe3d96 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -3001,11 +3001,11 @@ void tst_QAccessibility::treeTest()
QVERIFY(table2);
QCOMPARE(table2->columnCount(), 2);
QCOMPARE(table2->rowCount(), 2);
- QAccessibleInterface *cell1;
- QVERIFY(cell1 = table2->cellAt(0,0));
+ QAccessibleInterface *cell1 = table2->cellAt(0,0);
+ QVERIFY(cell1);
QCOMPARE(cell1->text(QAccessible::Name), QString("Spain"));
- QAccessibleInterface *cell2;
- QVERIFY(cell2 = table2->cellAt(1,0));
+ QAccessibleInterface *cell2 = table2->cellAt(1,0);
+ QVERIFY(cell2);
QCOMPARE(cell2->text(QAccessible::Name), QString("Austria"));
QCOMPARE(cell2->role(), QAccessible::TreeItem);
QCOMPARE(cell2->tableCellInterface()->rowIndex(), 1);
@@ -3129,8 +3129,8 @@ void tst_QAccessibility::tableTest()
QVERIFY(table2);
QCOMPARE(table2->columnCount(), 3);
QCOMPARE(table2->rowCount(), 3);
- QAccessibleInterface *cell1;
- QVERIFY(cell1 = table2->cellAt(0,0));
+ QAccessibleInterface *cell1 = table2->cellAt(0,0);
+ QVERIFY(cell1);
QCOMPARE(cell1->text(QAccessible::Name), QString("0.0"));
QCOMPARE(iface->indexOfChild(cell1), 5);