summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-10 09:27:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-10 10:48:40 +0100
commitdb176b0ed328b5b1b9e0a1950ab3daf11e6c0539 (patch)
treeab9231fd3904dbb395f0414f8eb7456e15f9680f
parent1e3eca93162a664c2b79124f37528579bb767e58 (diff)
coverity#1222241 Uncaught exception
Change-Id: Ibaf3a5305082b60fadb8a2499712dc4a460cb449
-rw-r--r--include/svx/unoapi.hxx2
-rw-r--r--svx/source/unodraw/unopage.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/unoapi.hxx b/include/svx/unoapi.hxx
index 7334bd28d8ed..74bd154f08cd 100644
--- a/include/svx/unoapi.hxx
+++ b/include/svx/unoapi.hxx
@@ -39,7 +39,7 @@ class SfxItemPool;
* Deprecated: This will be replaced with a function returning XShape.
*/
SVX_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor(sal_uInt16 nType, sal_uInt32 nInventor, OUString const & referer)
- throw (css::uno::RuntimeException);
+ throw (css::uno::RuntimeException, std::exception);
/** Returns a StarOffice API wrapper for the given SdrObject */
SVX_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw ();
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index db268de726c4..e6baa06ea074 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -885,7 +885,7 @@ uno::Sequence< OUString > SAL_CALL SvxDrawPage::getSupportedServiceNames() throw
}
SvxShape* CreateSvxShapeByTypeAndInventor(sal_uInt16 nType, sal_uInt32 nInventor, OUString const & referer)
- throw (css::uno::RuntimeException)
+ throw (css::uno::RuntimeException, std::exception)
{
return SvxDrawPage::CreateShapeByTypeAndInventor( nType, nInventor, 0, 0, referer );
}