summaryrefslogtreecommitdiff
path: root/basic/source/basmgr/vbahelper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /basic/source/basmgr/vbahelper.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'basic/source/basmgr/vbahelper.cxx')
-rw-r--r--basic/source/basmgr/vbahelper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/basmgr/vbahelper.cxx b/basic/source/basmgr/vbahelper.cxx
index 7434ba56a36a..b1af39fb979f 100644
--- a/basic/source/basmgr/vbahelper.cxx
+++ b/basic/source/basmgr/vbahelper.cxx
@@ -56,8 +56,8 @@ class DocumentsEnumeration : public ::cppu::WeakImplHelper1< container::XEnumera
{
public:
DocumentsEnumeration( const uno::Reference< frame::XModel >& rxModel );
- virtual sal_Bool SAL_CALL hasMoreElements() throw (uno::RuntimeException);
- virtual uno::Any SAL_CALL nextElement() throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);
+ virtual sal_Bool SAL_CALL hasMoreElements() throw (uno::RuntimeException, std::exception);
+ virtual uno::Any SAL_CALL nextElement() throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception);
private:
typedef ::std::vector< uno::Reference< frame::XModel > > ModelVector;
ModelVector maModels;
@@ -86,12 +86,12 @@ DocumentsEnumeration::DocumentsEnumeration( const uno::Reference< frame::XModel
maModelIt = maModels.begin();
}
-sal_Bool SAL_CALL DocumentsEnumeration::hasMoreElements() throw (uno::RuntimeException)
+sal_Bool SAL_CALL DocumentsEnumeration::hasMoreElements() throw (uno::RuntimeException, std::exception)
{
return maModelIt != maModels.end();
}
-uno::Any SAL_CALL DocumentsEnumeration::nextElement() throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
+uno::Any SAL_CALL DocumentsEnumeration::nextElement() throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
if( maModelIt == maModels.end() )
throw container::NoSuchElementException();