loplugin:simplifybool
Change-Id: I70a514996598c45faa82973e25b6c6b796a613ce
This commit is contained in:
parent
479031567d
commit
2f6497b0b7
@ -169,7 +169,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleRowSelected( sal_Int
|
||||
::osl::MutexGuard aGuard( getOslMutex() );
|
||||
ensureIsAlive();
|
||||
ensureIsValidRow( nRow );
|
||||
return isRowBar() ? implIsRowSelected( nRow ) : false;
|
||||
return isRowBar() && implIsRowSelected( nRow );
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_Int32 nColumn )
|
||||
@ -179,7 +179,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_
|
||||
::osl::MutexGuard aGuard( getOslMutex() );
|
||||
ensureIsAlive();
|
||||
ensureIsValidColumn( nColumn );
|
||||
return isColumnBar() ? implIsColumnSelected( nColumn ) : false;
|
||||
return isColumnBar() && implIsColumnSelected( nColumn );
|
||||
}
|
||||
|
||||
Reference< XAccessible > SAL_CALL AccessibleBrowseBoxHeaderBar::getAccessibleCellAt(
|
||||
|
@ -271,7 +271,7 @@ namespace accessibility
|
||||
|
||||
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user