macOS a11y: collapse branches on identical condition
No need to test twice whether the row's columns array is initialized. Pick-to: 6.9 6.8 Change-Id: Iead06f98ad421202bb4b71ae8efbd784ab3e87c1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
60c2eac401
commit
bd6e55c856
@ -155,8 +155,6 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
|||||||
qCWarning(lcAccessibilityTable)
|
qCWarning(lcAccessibilityTable)
|
||||||
<< "Table representation column count is out of sync:"
|
<< "Table representation column count is out of sync:"
|
||||||
<< rowElement->columns.count << "!=" << tableInterface->columnCount();
|
<< rowElement->columns.count << "!=" << tableInterface->columnCount();
|
||||||
}
|
|
||||||
if (rowElement->columns) {
|
|
||||||
[rowElement->columns autorelease];
|
[rowElement->columns autorelease];
|
||||||
rowElement->columns = nil;
|
rowElement->columns = nil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user