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>
bb10
Friedemann Kleint 2017-01-16 17:38:45 +01:00
parent f4a098c635
commit eba886c32f
1 changed files with 6 additions and 6 deletions

View File

@ -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);