summaryrefslogtreecommitdiff
path: root/oox/source/ole/vbamodule.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 /oox/source/ole/vbamodule.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'oox/source/ole/vbamodule.cxx')
-rw-r--r--oox/source/ole/vbamodule.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx
index 64eb7237f68d..dc1c9adc199f 100644
--- a/oox/source/ole/vbamodule.cxx
+++ b/oox/source/ole/vbamodule.cxx
@@ -60,7 +60,7 @@ class OleIdToNameContainer : public OleIdToNameContainer_BASE
public:
OleIdToNameContainer() {}
// XIndexContainer Methods
- virtual void SAL_CALL insertByIndex( ::sal_Int32 Index, const Any& Element ) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+ virtual void SAL_CALL insertByIndex( ::sal_Int32 Index, const Any& Element ) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
OUString sOleName;
@@ -68,7 +68,7 @@ public:
throw IllegalArgumentException();
ObjIdToNameHash[ Index ] = sOleName;
}
- virtual void SAL_CALL removeByIndex( ::sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+ virtual void SAL_CALL removeByIndex( ::sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( !hasByIndex( Index ) )
@@ -76,7 +76,7 @@ public:
ObjIdToNameHash.erase( ObjIdToNameHash.find( Index ) );
}
// XIndexReplace Methods
- virtual void SAL_CALL replaceByIndex( ::sal_Int32 Index, const Any& Element ) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+ virtual void SAL_CALL replaceByIndex( ::sal_Int32 Index, const Any& Element ) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( !hasByIndex( Index ) )
@@ -87,12 +87,12 @@ public:
ObjIdToNameHash[ Index ] = sOleName;
}
// XIndexAccess Methods
- virtual ::sal_Int32 SAL_CALL getCount( ) throw (RuntimeException)
+ virtual ::sal_Int32 SAL_CALL getCount( ) throw (RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
return ObjIdToNameHash.size();
}
- virtual Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException)
+ virtual Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( !hasByIndex( Index ) )
@@ -100,11 +100,11 @@ public:
return makeAny( ObjIdToNameHash[ Index ] );
}
// XElementAccess Methods
- virtual Type SAL_CALL getElementType( ) throw (RuntimeException)
+ virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception)
{
return ::getCppuType( static_cast< const OUString* >( 0 ) );
}
- virtual ::sal_Bool SAL_CALL hasElements( ) throw (RuntimeException)
+ virtual ::sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
return ( getCount() > 0 );