-Werror,-Wundefined-bool-conversion

Change-Id: I373d795951120d19bc7664282741d956d1ec3768
This commit is contained in:
Stephan Bergmann 2014-06-10 11:24:05 +02:00
parent dc0b96639f
commit 2da7ce3ba8
2 changed files with 2 additions and 6 deletions

View file

@ -320,7 +320,7 @@ bool AccessibleGridControlBase::implIsShowing()
bool AccessibleGridControlBase::isAlive() const
{
::osl::MutexGuard g(m_aMutex); // guards rBHelper members
return !rBHelper.bDisposed && !rBHelper.bInDispose && &m_aTable;
return !rBHelper.bDisposed && !rBHelper.bInDispose;
}
void AccessibleGridControlBase::ensureIsAlive() const

View file

@ -145,11 +145,7 @@ namespace accessibility
if ( !implIsValidIndex( nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
::com::sun::star::awt::Rectangle aRect;
if ( &m_aTable )
aRect = AWTRectangle( m_aTable.GetFieldCharacterBounds( getRowPos(), getColumnPos(), nIndex ) );
return aRect;
return AWTRectangle( m_aTable.GetFieldCharacterBounds( getRowPos(), getColumnPos(), nIndex ) );
}
sal_Int32 SAL_CALL AccessibleGridControlTableCell::getIndexAtPoint( const ::com::sun::star::awt::Point& _aPoint ) throw (RuntimeException, std::exception)