loplugin:casttovoid: accessibility

Change-Id: I397c1c51c166d57917d2a412ec8f59c8a24936f2
This commit is contained in:
Stephan Bergmann 2017-07-02 22:36:06 +02:00
parent bd50d82d6f
commit a04ccfed42
3 changed files with 4 additions and 9 deletions

View File

@ -159,9 +159,8 @@ sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleRowSelected( sal_Int3
return false;
}
//columns aren't selectable
sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleColumnSelected( sal_Int32 nColumn )
sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleColumnSelected( sal_Int32 )
{
(void)nColumn;
return false;
}
//not implemented

View File

@ -184,9 +184,8 @@ sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleRowSelected( sal_Int32
}
//columns aren't selectable
sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleColumnSelected( sal_Int32 nColumn )
sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleColumnSelected( sal_Int32 )
{
(void) nColumn;
return false;
}
@ -220,7 +219,6 @@ sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleSelected(
ensureIsAlive();
ensureIsValidAddress( nRow, nColumn );
(void) nColumn;
//selection of single cells not possible, so if row is selected, the cell will be selected too
return isAccessibleRowSelected(nRow);
}
@ -282,12 +280,11 @@ AccessibleGridControlTable::getSelectedAccessibleChild( sal_Int32 nSelectedChild
}
//not implemented yet, because only row selection possible
void SAL_CALL AccessibleGridControlTable::deselectAccessibleChild(
sal_Int32 nSelectedChildIndex )
sal_Int32 )
{
SolarMutexGuard aSolarGuard;
ensureIsAlive();
(void)nSelectedChildIndex;
}
// XInterface -----------------------------------------------------------------

View File

@ -226,9 +226,8 @@ namespace accessibility
{
xMyContext->dispose();
}
catch( const Exception& e )
catch( const Exception& )
{
(void)e;
OSL_FAIL( "EditBrowseBoxTableCellAccess::disposing: caught an exception while disposing the context!" );
}
}