Fix warning (unused variable) in QAccessibility test.

Reviewed-by: Morten Sorvig
(cherry picked from commit c3ebd1d38826739cb989e65770d2a22b9a39dcc4)
This commit is contained in:
Frederik Gladhorn 2011-04-22 16:39:00 +02:00 committed by Olivier Goffart
parent 14e31b1f5f
commit 45baf4ed0b

View File

@ -4048,10 +4048,10 @@ void tst_QAccessibility::pushButtonTest()
QAccessibleInterface *acc;
QAccessibleInterface *acc2;
int entry = accToplevel->childAt(pt.x(), pt.y());
int child = accToplevel->navigate(QAccessible::Child, entry, &acc);
accToplevel->navigate(QAccessible::Child, entry, &acc);
if (acc) {
entry = acc->childAt(pt.x(), pt.y());
child = acc->navigate(QAccessible::Child, entry, &acc2);
acc->navigate(QAccessible::Child, entry, &acc2);
delete acc;
acc = acc2;
}