diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-02 15:13:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-02 16:59:59 +0100 |
commit | 630d48121011529675c493a618090252ad63cc3b (patch) | |
tree | cec86a4dd9258aebeb47e1a37ff16c3d14198e7e | |
parent | 074079b9093b0b393fb7308db03ee91e5f081d67 (diff) |
coverity#1213461 Uncaught exception
Change-Id: I4c0a28ea11e0d38837a3b338928073d32d2b6abe
-rw-r--r-- | include/svx/unopage.hxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/unopage.hxx b/include/svx/unopage.hxx index 62961d4329e5..8dc123b2e294 100644 --- a/include/svx/unopage.hxx +++ b/include/svx/unopage.hxx @@ -96,7 +96,7 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper6< ::com::sun: virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw (css::uno::RuntimeException, std::exception); - static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL, OUString const & referer = OUString() ) throw(); + static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = NULL, SvxDrawPage *pPage = NULL, OUString const & referer = OUString() ) throw (css::uno::RuntimeException); // The following method is called if a SvxShape object is to be created. // Derived classes can create a derivation or an SvxShape aggregating object. diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 21e57365cc0a..d6e23863d87c 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -611,7 +611,8 @@ void SvxDrawPage::GetTypeAndInventor( sal_uInt16& rType, sal_uInt32& rInventor, } } -SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj, SvxDrawPage *mpPage, OUString const & referer ) throw() +SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj, SvxDrawPage *mpPage, OUString const & referer ) + throw (css::uno::RuntimeException) { SvxShape* pRet = NULL; switch( nInventor ) |