macOS: Remove unused variables in a11y implementation
Pick-to: 6.8 Change-Id: Ib011f09119e324ce08837448eb82249f0b79a33e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 002badc3abdea577651b58c5d61c35ea7c38240a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cd5c10b33b
commit
4f249a3c89
@ -253,7 +253,7 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
||||
|
||||
- (NSMutableArray *)populateTableArray:(NSAccessibilityRole)role count:(int)count
|
||||
{
|
||||
if (QAccessibleInterface *iface = self.qtInterface) {
|
||||
if (self.qtInterface) {
|
||||
auto *array = [NSMutableArray<QMacAccessibilityElement *> arrayWithCapacity:count];
|
||||
Q_ASSERT(array);
|
||||
for (int n = 0; n < count; ++n) {
|
||||
@ -408,7 +408,7 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
||||
}
|
||||
|
||||
- (NSString *) accessibilityRoleDescription {
|
||||
if (QAccessibleInterface *iface = self.qtInterface)
|
||||
if (self.qtInterface)
|
||||
return NSAccessibilityRoleDescription(self.accessibilityRole, self.accessibilitySubRole);
|
||||
return NSAccessibilityUnknownRole;
|
||||
}
|
||||
@ -998,7 +998,7 @@ static void convertLineOffset(QAccessibleTextInterface *text, int *line, int *of
|
||||
if (self.isManagedByParent) {
|
||||
// axid matches the parent table axid so that we can easily find the parent table
|
||||
// children of row are cell/any items
|
||||
if (QAccessibleTableInterface *table = iface->tableInterface()) {
|
||||
if (iface->tableInterface()) {
|
||||
if (m_rowIndex >= 0)
|
||||
index = NSInteger(m_rowIndex);
|
||||
else if (m_columnIndex >= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user