summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-27 16:33:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-27 21:08:36 +0100
commitf3395a6585555252581d8458b6fd394059188b6d (patch)
tree2910cacef11971c7da37c6edfad07340a3fb20c0 /sd
parent92814c6fe446380ce57d18a77f22571c916fbb9d (diff)
coverity#1209951 Uncaught exception
Change-Id: I11bdec73ea12e189cca41f5f275616a138cf5793
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/unomodel.hxx3
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx2
2 files changed, 3 insertions, 2 deletions
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<css::uno::XInterface> 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();