summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-28 15:53:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-28 16:23:40 +0100
commit444125a8aa7826f7357451bcd743afaf44b4cff7 (patch)
tree2fca4e872888c86da3302fcf79cc303b95e16821
parent3f0a2a704f4110b9beba04201602957d5f12bf2b (diff)
coverity#707290 Uncaught exception
Change-Id: Ia1d09b753270cca82cadf8779abec44c8a0180b1
-rw-r--r--sw/inc/unodraw.hxx3
-rw-r--r--sw/source/core/unocore/unodraw.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index 0ef486d6d5be..04dceffb02db 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -46,7 +46,8 @@ protected:
// Create a SdrObject according to a description. Can be used by derived classes to
// support own ::com::sun::star::drawing::Shapes (e.g. controls).
- virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape ) throw (std::exception) SAL_OVERRIDE;
+ virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape )
+ throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
public:
SwFmDrawPage( SdrPage* pPage );
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index c020b0fbd80e..7c49f4486133 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -291,7 +291,8 @@ uno::Reference< uno::XInterface > SwFmDrawPage::GetInterface( SdrObject* pObj
return xShape;
}
-SdrObject* SwFmDrawPage::_CreateSdrObject( const uno::Reference< drawing::XShape > & xShape ) throw (std::exception)
+SdrObject* SwFmDrawPage::_CreateSdrObject( const uno::Reference< drawing::XShape > & xShape )
+ throw (uno::RuntimeException, std::exception)
{
//TODO: stimmt das so - kann die Methode weg?
return SvxFmDrawPage::_CreateSdrObject( xShape );