summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-13 16:28:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-13 21:04:44 +0000
commit4b86ca090305b7a959033cb3730e2fb7e11985f8 (patch)
treec8eb58cdef379182f29f343de2ed16fc00f73d51 /sd
parent8ad55179ea0158cb64ad3fe000aa7d3fb0317ccf (diff)
coverity#737824 Uncaught exception
Change-Id: Ie8ba13265b436eb3ca548d5ccd2ca28d1e65e035
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/unomodel.hxx4
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx
index 515500cd8f04..ba33e4d9a579 100644
--- a/sd/source/ui/inc/unomodel.hxx
+++ b/sd/source/ui/inc/unomodel.hxx
@@ -288,7 +288,9 @@ public:
virtual ~SdMasterPagesAccess() throw();
// XDrawPages
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL insertNewByIndex( sal_Int32 nIndex ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL insertNewByIndex( sal_Int32 nIndex )
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage ) throw(::com::sun::star::uno::RuntimeException);
// XIndexAccess
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 0740babe319a..c197cc278596 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2670,7 +2670,7 @@ sal_Bool SAL_CALL SdMasterPagesAccess::hasElements()
// XDrawPages
uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIndex( sal_Int32 nInsertPos )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
::SolarMutexGuard aGuard;