summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-12-15 22:46:08 +0100
committerMichael Stahl <mstahl@redhat.com>2016-12-16 10:20:50 +0100
commit5a3b2111172f106378cbf78aba0fde1db3642275 (patch)
tree3e374fa848381ecb57a59c6a4fc6f2df3bf90547 /editeng
parent657bca91b115b380af16c13e5ca5d6a0f0f4a562 (diff)
tdf#104488 editeng,svx: throw less Accessible exceptions
For some of these functions it doesn't make sense to throw DisposedException as they can return a sensible default value. Particularly AccessibleShape::getAccessibleChildCount() was throwing an exception that was never caught. Change-Id: I000149cf9bb0fd13f69650ad8224a8daf26f7bee
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleContextBase.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx
index 57d9f3632a75..1b92baa184f4 100644
--- a/editeng/source/accessibility/AccessibleContextBase.cxx
+++ b/editeng/source/accessibility/AccessibleContextBase.cxx
@@ -173,7 +173,6 @@ uno::Reference< XAccessibleContext> SAL_CALL
AccessibleContextBase::getAccessibleContext()
throw (uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return this;
}
@@ -186,7 +185,6 @@ sal_Int32 SAL_CALL
AccessibleContextBase::getAccessibleChildCount()
throw (uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return 0;
}
@@ -418,7 +416,6 @@ void SAL_CALL AccessibleContextBase::removeAccessibleEventListener (
OUString SAL_CALL AccessibleContextBase::getImplementationName()
throw (css::uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return OUString("AccessibleContextBase");
}
@@ -432,7 +429,6 @@ uno::Sequence< OUString > SAL_CALL
AccessibleContextBase::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return {
"com.sun.star.accessibility.Accessible",
"com.sun.star.accessibility.AccessibleContext"};
@@ -445,8 +441,6 @@ uno::Sequence< css::uno::Type>
AccessibleContextBase::getTypes()
throw (css::uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
-
// This class supports no interfaces on its own. Just return those
// supported by the base class.
return WeakComponentImplHelper::getTypes();