diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-17 09:50:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-17 15:19:54 +0100 |
commit | f5b1b266bc0164b0c69a7c36bb1deed0e451efce (patch) | |
tree | d092ea34a2c6e23734d8ba94e272b9186cbb14a6 | |
parent | fc0e506d649481e96b8930f3d9594eefc3323196 (diff) |
coverity#1247646 Uncaught exception
Change-Id: I332fb602466613e9e79ba4510879411e0bee9da6
-rw-r--r-- | basctl/source/accessibility/accessibledialogcontrolshape.cxx | 14 | ||||
-rw-r--r-- | basctl/source/inc/accessibledialogcontrolshape.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/accessiblecomponenthelper.hxx | 2 |
3 files changed, 3 insertions, 15 deletions
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index 75dd5f8f0129..34545917f35a 100644 --- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx +++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx @@ -238,31 +238,19 @@ void AccessibleDialogControlShape::FillAccessibleStateSet( utl::AccessibleStateS rStateSet.AddState( AccessibleStateType::RESIZABLE ); } - // OCommonAccessibleComponent - - -awt::Rectangle AccessibleDialogControlShape::implGetBounds() throw (RuntimeException) +awt::Rectangle AccessibleDialogControlShape::implGetBounds() throw (RuntimeException, std::exception) { return GetBounds(); } - // XInterface - - IMPLEMENT_FORWARD_XINTERFACE2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE ) - // XTypeProvider - - IMPLEMENT_FORWARD_XTYPEPROVIDER2( AccessibleDialogControlShape, AccessibleExtendedComponentHelper_BASE, AccessibleDialogControlShape_BASE ) - // XComponent - - void AccessibleDialogControlShape::disposing() { AccessibleExtendedComponentHelper_BASE::disposing(); diff --git a/basctl/source/inc/accessibledialogcontrolshape.hxx b/basctl/source/inc/accessibledialogcontrolshape.hxx index bd0fa268c427..c0e667406d94 100644 --- a/basctl/source/inc/accessibledialogcontrolshape.hxx +++ b/basctl/source/inc/accessibledialogcontrolshape.hxx @@ -81,7 +81,7 @@ protected: virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); // OCommonAccessibleComponent - virtual ::com::sun::star::awt::Rectangle implGetBounds( ) throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + virtual ::com::sun::star::awt::Rectangle implGetBounds() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XComponent virtual void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/include/comphelper/accessiblecomponenthelper.hxx b/include/comphelper/accessiblecomponenthelper.hxx index 520ce81f71b8..b5c7827aedc1 100644 --- a/include/comphelper/accessiblecomponenthelper.hxx +++ b/include/comphelper/accessiblecomponenthelper.hxx @@ -47,7 +47,7 @@ namespace comphelper protected: /// implements the calculation of the bounding rectangle - still waiting to be overwritten - virtual ::com::sun::star::awt::Rectangle implGetBounds( ) throw (::com::sun::star::uno::RuntimeException) = 0; + virtual css::awt::Rectangle implGetBounds( ) throw (css::uno::RuntimeException, std::exception) = 0; protected: /** non-virtual versions of the methods which can be implemented using <method>implGetBounds</method> |