diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 10:18:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 10:56:15 +0100 |
commit | 1b6cefaf68b89da765847093ecb542c1139935d3 (patch) | |
tree | 2276652b320905ae94fa4d191d82ce02e88b16b5 /reportdesign | |
parent | 6d45e2a4fcacf0e58b4b8d22ad452e48a996ad88 (diff) |
coverity#706608 Uncaught exception
Change-Id: I26cf7c33089ddfcbb7faf81295b9a9776c6a9065
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/inc/ReportDrawPage.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/ReportDrawPage.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/reportdesign/source/core/inc/ReportDrawPage.hxx b/reportdesign/source/core/inc/ReportDrawPage.hxx index 98270cf0edf6..844d00c8d8bc 100644 --- a/reportdesign/source/core/inc/ReportDrawPage.hxx +++ b/reportdesign/source/core/inc/ReportDrawPage.hxx @@ -33,7 +33,7 @@ namespace reportdesign protected: virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (std::exception) SAL_OVERRIDE; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; public: OReportDrawPage(SdrPage* pPage,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection); virtual ~OReportDrawPage() throw(){} diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index a96d18b2ddf9..0c7867febe25 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -55,7 +55,8 @@ SdrObject* OReportDrawPage::_CreateSdrObject(const uno::Reference< drawing::XSha return SvxDrawPage::_CreateSdrObject( xDescr ); } -uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pObj ) const throw (std::exception) +uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pObj ) const + throw (uno::RuntimeException, std::exception) { OObjectBase* pBaseObj = dynamic_cast<OObjectBase*>(pObj); if ( !pBaseObj ) |