diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /sc/source/ui/vba/vbahyperlinks.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'sc/source/ui/vba/vbahyperlinks.cxx')
-rw-r--r-- | sc/source/ui/vba/vbahyperlinks.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/vba/vbahyperlinks.cxx b/sc/source/ui/vba/vbahyperlinks.cxx index b9423a611c90..776ed4e902fa 100644 --- a/sc/source/ui/vba/vbahyperlinks.cxx +++ b/sc/source/ui/vba/vbahyperlinks.cxx @@ -118,12 +118,12 @@ public: void insertHyperlink( const uno::Reference< excel::XHyperlink >& rxHlink ) throw (uno::RuntimeException); // XIndexAccess - virtual sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException); - virtual uno::Any SAL_CALL getByIndex( sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException); + virtual sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception); + virtual uno::Any SAL_CALL getByIndex( sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception); // XElementAccess - virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException); - virtual sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException); + virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException, std::exception); private: typedef ::std::vector< uno::Reference< excel::XHyperlink > > HyperlinkVector; @@ -162,25 +162,25 @@ void ScVbaHlinkContainer::insertHyperlink( const uno::Reference< excel::XHyperli *aIt = rxHlink; } -sal_Int32 SAL_CALL ScVbaHlinkContainer::getCount() throw (uno::RuntimeException) +sal_Int32 SAL_CALL ScVbaHlinkContainer::getCount() throw (uno::RuntimeException, std::exception) { return static_cast< sal_Int32 >( maHlinks.size() ); } uno::Any SAL_CALL ScVbaHlinkContainer::getByIndex( sal_Int32 nIndex ) - throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException) + throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { if( (0 <= nIndex) && (nIndex < getCount()) ) return uno::Any( maHlinks[ static_cast< size_t >( nIndex ) ] ); throw lang::IndexOutOfBoundsException(); } -uno::Type SAL_CALL ScVbaHlinkContainer::getElementType() throw (uno::RuntimeException) +uno::Type SAL_CALL ScVbaHlinkContainer::getElementType() throw (uno::RuntimeException, std::exception) { return cppu::UnoType<excel::XHyperlink>::get(); } -sal_Bool SAL_CALL ScVbaHlinkContainer::hasElements() throw (uno::RuntimeException) +sal_Bool SAL_CALL ScVbaHlinkContainer::hasElements() throw (uno::RuntimeException, std::exception) { return !maHlinks.empty(); } @@ -224,7 +224,7 @@ ScVbaHyperlinks::~ScVbaHyperlinks() uno::Reference< excel::XHyperlink > SAL_CALL ScVbaHyperlinks::Add( const uno::Any& rAnchor, const uno::Any& rAddress, const uno::Any& rSubAddress, - const uno::Any& rScreenTip, const uno::Any& rTextToDisplay ) throw (uno::RuntimeException) + const uno::Any& rScreenTip, const uno::Any& rTextToDisplay ) throw (uno::RuntimeException, std::exception) { /* If this Hyperlinks object has been craeted from a Range object, the call to Add() is passed to the Hyperlinks object of the parent @@ -249,7 +249,7 @@ uno::Reference< excel::XHyperlink > SAL_CALL ScVbaHyperlinks::Add( return xHlink; } -void SAL_CALL ScVbaHyperlinks::Delete() throw (uno::RuntimeException) +void SAL_CALL ScVbaHyperlinks::Delete() throw (uno::RuntimeException, std::exception) { // FIXME not implemented throw uno::RuntimeException(); |