loplugin:simplifybool
Change-Id: I70a514996598c45faa82973e25b6c6b796a613ce
This commit is contained in:
@@ -169,7 +169,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleRowSelected( sal_Int
|
|||||||
::osl::MutexGuard aGuard( getOslMutex() );
|
::osl::MutexGuard aGuard( getOslMutex() );
|
||||||
ensureIsAlive();
|
ensureIsAlive();
|
||||||
ensureIsValidRow( nRow );
|
ensureIsValidRow( nRow );
|
||||||
return isRowBar() ? implIsRowSelected( nRow ) : false;
|
return isRowBar() && implIsRowSelected( nRow );
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_Int32 nColumn )
|
sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_Int32 nColumn )
|
||||||
@@ -179,7 +179,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_
|
|||||||
::osl::MutexGuard aGuard( getOslMutex() );
|
::osl::MutexGuard aGuard( getOslMutex() );
|
||||||
ensureIsAlive();
|
ensureIsAlive();
|
||||||
ensureIsValidColumn( nColumn );
|
ensureIsValidColumn( nColumn );
|
||||||
return isColumnBar() ? implIsColumnSelected( nColumn ) : false;
|
return isColumnBar() && implIsColumnSelected( nColumn );
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XAccessible > SAL_CALL AccessibleBrowseBoxHeaderBar::getAccessibleCellAt(
|
Reference< XAccessible > SAL_CALL AccessibleBrowseBoxHeaderBar::getAccessibleCellAt(
|
||||||
|
@@ -271,7 +271,7 @@ namespace accessibility
|
|||||||
|
|
||||||
bool AccessibleTabListBoxTable::implIsRowSelected( sal_Int32 _nRow ) const
|
bool AccessibleTabListBoxTable::implIsRowSelected( sal_Int32 _nRow ) const
|
||||||
{
|
{
|
||||||
return m_pTabListBox ? m_pTabListBox->IsSelected( m_pTabListBox->GetEntry( _nRow ) ) : false;
|
return m_pTabListBox && m_pTabListBox->IsSelected( m_pTabListBox->GetEntry( _nRow ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleTabListBoxTable::implSelectRow( sal_Int32 _nRow, bool _bSelect )
|
void AccessibleTabListBoxTable::implSelectRow( sal_Int32 _nRow, bool _bSelect )
|
||||||
|
Reference in New Issue
Block a user