loplugin:simplifybool

Change-Id: I70a514996598c45faa82973e25b6c6b796a613ce
This commit is contained in:
Stephan Bergmann
2015-04-24 12:24:39 +02:00
parent 479031567d
commit 2f6497b0b7
2 changed files with 3 additions and 3 deletions

View File

@@ -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(

View File

@@ -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 )