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-19 19:46:27 +0000
commit0dd9e51abc5705b7ae253d3f9b284136cf1597d6 (patch)
treece748a57a1a5b37ab1ebed2e224f8cc9b9f9ab7c /editeng
parent962e70501e4351761a9e521faed9506d865bcc63 (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. (cherry picked from commit 5a3b2111172f106378cbf78aba0fde1db3642275) loplugin:unnecessaryoverride (cherry picked from commit 10bf49c18d56f198e63514953a1c6e2ea17fcc9c) Change-Id: I000149cf9bb0fd13f69650ad8224a8daf26f7bee Reviewed-on: https://gerrit.libreoffice.org/32187 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleContextBase.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx
index f93e4437bab5..32912aa91cf1 100644
--- a/editeng/source/accessibility/AccessibleContextBase.cxx
+++ b/editeng/source/accessibility/AccessibleContextBase.cxx
@@ -175,7 +175,6 @@ uno::Reference< XAccessibleContext> SAL_CALL
AccessibleContextBase::getAccessibleContext()
throw (uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return this;
}
@@ -188,7 +187,6 @@ sal_Int32 SAL_CALL
AccessibleContextBase::getAccessibleChildCount()
throw (uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return 0;
}
@@ -420,7 +418,6 @@ void SAL_CALL AccessibleContextBase::removeAccessibleEventListener (
OUString SAL_CALL AccessibleContextBase::getImplementationName()
throw (css::uno::RuntimeException, std::exception)
{
- ThrowIfDisposed ();
return OUString("AccessibleContextBase");
}
@@ -434,7 +431,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"};
@@ -443,17 +439,6 @@ uno::Sequence< OUString > SAL_CALL
// XTypeProvider
-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();
-}
-
uno::Sequence<sal_Int8> SAL_CALL
AccessibleContextBase::getImplementationId()
throw (css::uno::RuntimeException, std::exception)