summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 16:41:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 21:04:49 +0000
commit537deaeac2c707040539f4541b11d92937b3af28 (patch)
treef9728209b6d6ab0c2cd74e303b69325e3e6d9332
parentec8fc9c7a90739d5af1f2a2829602bacc41505cf (diff)
coverity#737836 Uncaught exception
Change-Id: I533cccc1dab5e8d722209c37f0c05331d5c206a8
-rw-r--r--sd/source/ui/unoidl/unopage.cxx4
-rw-r--r--sd/source/ui/unoidl/unopage.hxx4
2 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 1aaa1c15934b..244bbf4384cf 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -2448,7 +2448,9 @@ void SAL_CALL SdDrawPage::add( const Reference< drawing::XShape >& xShape ) thro
SdGenericDrawPage::add( xShape );
}
-void SAL_CALL SdDrawPage::remove( const Reference< drawing::XShape >& xShape ) throw(uno::RuntimeException)
+void SAL_CALL SdDrawPage::remove( const Reference< drawing::XShape >& xShape )
+ throw (uno::RuntimeException,
+ std::exception)
{
::SolarMutexGuard aGuard;
diff --git a/sd/source/ui/unoidl/unopage.hxx b/sd/source/ui/unoidl/unopage.hxx
index 4485e5dce3e4..967c0f748a13 100644
--- a/sd/source/ui/unoidl/unopage.hxx
+++ b/sd/source/ui/unoidl/unopage.hxx
@@ -211,7 +211,9 @@ public:
// XShapes
virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
};
/***********************************************************************