diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 16:43:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-13 21:04:50 +0000 |
commit | d051a056c96e212b879a53444646a88dae1b8972 (patch) | |
tree | 5345034194345ba0e247858d9e5fdd1ff21bb8e0 /sd | |
parent | 70d10669b835b15e20af9fab73451a4eb24758a8 (diff) |
coverity#737840 Uncaught exception
Change-Id: I3e11ac315adbe2f64bfc391234c517472950aeff
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.hxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index bde3843b0e69..d1f11baebf8e 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -388,7 +388,8 @@ SdXImpressDocument* SdGenericDrawPage::GetModel() const } // this is called whenever a SdrObject must be created for a empty api shape wrapper -SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShape >& xShape ) throw() +SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShape >& xShape ) + throw (std::exception) { if( NULL == SvxFmDrawPage::mpPage || !xShape.is() ) return NULL; diff --git a/sd/source/ui/unoidl/unopage.hxx b/sd/source/ui/unoidl/unopage.hxx index e7ce2b1adf96..916f81642a2c 100644 --- a/sd/source/ui/unoidl/unopage.hxx +++ b/sd/source/ui/unoidl/unopage.hxx @@ -104,7 +104,8 @@ public: virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); // this is called whenever a SdrObject must be created for a empty api shape wrapper - virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(); + virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) + throw (std::exception); // SvxFmDrawPage virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (); |