diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 09:56:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 10:48:41 +0100 |
commit | 1979afcc9b407f82a23dafdc99452ad390e8e7ba (patch) | |
tree | 206f41b867539a39518cd938801e792fc68924ec /sc | |
parent | fea4482ea8bfcb79c2ad83c5402ee84c4d9c3580 (diff) |
coverity#706877 Uncaught exception
Change-Id: I7364afe103f9912b31bde7f4e84baf16633b05f8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/pageuno.hxx | 8 | ||||
-rw-r--r-- | sc/source/ui/unoobj/pageuno.cxx | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sc/inc/pageuno.hxx b/sc/inc/pageuno.hxx index f67720cc1a2c..8de301c718c1 100644 --- a/sc/inc/pageuno.hxx +++ b/sc/inc/pageuno.hxx @@ -27,11 +27,11 @@ class ScPageObj : public SvxFmDrawPage { public: - ScPageObj( SdrPage* pPage ); - virtual ~ScPageObj() throw(); + ScPageObj(SdrPage* pPage); + virtual ~ScPageObj() throw(); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > - _CreateShape( SdrObject *pObj ) const throw(std::exception) SAL_OVERRIDE; + virtual css::uno::Reference<css::drawing::XShape> _CreateShape(SdrObject *pObj) const + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XServiceInfo virtual OUString SAL_CALL getImplementationName() diff --git a/sc/source/ui/unoobj/pageuno.cxx b/sc/source/ui/unoobj/pageuno.cxx index 7cb1392df075..744ac5ecab90 100644 --- a/sc/source/ui/unoobj/pageuno.cxx +++ b/sc/source/ui/unoobj/pageuno.cxx @@ -33,7 +33,8 @@ ScPageObj::~ScPageObj() throw() { } -uno::Reference<drawing::XShape > ScPageObj::_CreateShape( SdrObject *pObj ) const throw(std::exception) +uno::Reference<drawing::XShape > ScPageObj::_CreateShape( SdrObject *pObj ) const + throw (css::uno::RuntimeException, std::exception) { uno::Reference<drawing::XShape> xShape(SvxFmDrawPage::_CreateShape( pObj )); |