From f3395a6585555252581d8458b6fd394059188b6d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 27 May 2014 16:33:28 +0100 Subject: coverity#1209951 Uncaught exception Change-Id: I11bdec73ea12e189cca41f5f275616a138cf5793 --- sd/source/ui/inc/unomodel.hxx | 3 ++- sd/source/ui/unoidl/unomodel.cxx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index cc6308d1ab4a..d6ba9c398d73 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -90,7 +90,8 @@ private: css::uno::Reference create( OUString const & aServiceSpecifier, OUString const & referer); - SdPage* InsertSdPage( sal_uInt16 nPage, bool bDuplicate = false ) throw (css::uno::RuntimeException); + SdPage* InsertSdPage( sal_uInt16 nPage, bool bDuplicate = false ) + throw (css::uno::RuntimeException, std::exception); const bool mbImpressDoc; bool mbClipBoard; diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index a21f6012a7ff..ce57995e718c 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -440,7 +440,7 @@ void SdXImpressDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) * * ******************************************************************************/ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, bool bDuplicate ) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { sal_uInt16 nPageCount = mpDoc->GetSdPageCount( PK_STANDARD ); SdrLayerAdmin& rLayerAdmin = mpDoc->GetLayerAdmin(); -- cgit