Kaydet (Commit) 2f6497b0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I70a514996598c45faa82973e25b6c6b796a613ce
üst 47903156
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment