summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-10 11:24:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-10 11:24:05 +0200
commit2da7ce3ba8e5838b782fe4f9e26a29c1c7face54 (patch)
tree61d484f29c96eec1103edb3fa5a1147ff0238923 /accessibility
parentdc0b96639f54acc2bbc9583265aac27d4566c89f (diff)
-Werror,-Wundefined-bool-conversion
Change-Id: I373d795951120d19bc7664282741d956d1ec3768
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/AccessibleGridControlBase.cxx2
-rw-r--r--accessibility/source/extended/AccessibleGridControlTableCell.cxx6
2 files changed, 2 insertions, 6 deletions
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index f79d64c565c6..dafe083ba4ec 100644
--- a/accessibility/source/extended/AccessibleGridControlBase.cxx
+++ b/accessibility/source/extended/AccessibleGridControlBase.cxx
@@ -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
diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
index 08cfe0baf932..f55f1cbe849d 100644
--- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
@@ -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)