summaryrefslogtreecommitdiff
path: root/package/source/xstor/owriteablestream.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 /package/source/xstor/owriteablestream.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'package/source/xstor/owriteablestream.cxx')
-rw-r--r--package/source/xstor/owriteablestream.cxx90
1 files changed, 45 insertions, 45 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index eb32aeac92b1..8b1e4c5291db 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -1873,7 +1873,7 @@ void OWriteStream::ModifyParentUnlockMutex_Impl( ::osl::ResettableMutexGuard& aG
}
uno::Any SAL_CALL OWriteStream::queryInterface( const uno::Type& rType )
- throw( uno::RuntimeException )
+ throw( uno::RuntimeException, std::exception )
{
uno::Any aReturn;
@@ -1935,7 +1935,7 @@ void SAL_CALL OWriteStream::release() throw()
}
uno::Sequence< uno::Type > SAL_CALL OWriteStream::getTypes()
- throw( uno::RuntimeException )
+ throw( uno::RuntimeException, std::exception )
{
if ( m_pData->m_pTypeCollection == NULL )
{
@@ -2048,7 +2048,7 @@ uno::Sequence< uno::Type > SAL_CALL OWriteStream::getTypes()
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
uno::Sequence< sal_Int8 > SAL_CALL OWriteStream::getImplementationId()
- throw( uno::RuntimeException )
+ throw( uno::RuntimeException, std::exception )
{
::cppu::OImplementationId &rId = lcl_ImplId::get();
return rId.getImplementationId();
@@ -2058,7 +2058,7 @@ sal_Int32 SAL_CALL OWriteStream::readBytes( uno::Sequence< sal_Int8 >& aData, sa
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2080,7 +2080,7 @@ sal_Int32 SAL_CALL OWriteStream::readSomeBytes( uno::Sequence< sal_Int8 >& aData
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2102,7 +2102,7 @@ void SAL_CALL OWriteStream::skipBytes( sal_Int32 nBytesToSkip )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2123,7 +2123,7 @@ void SAL_CALL OWriteStream::skipBytes( sal_Int32 nBytesToSkip )
sal_Int32 SAL_CALL OWriteStream::available( )
throw ( io::NotConnectedException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2145,7 +2145,7 @@ sal_Int32 SAL_CALL OWriteStream::available( )
void SAL_CALL OWriteStream::closeInput( )
throw ( io::NotConnectedException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2169,7 +2169,7 @@ void SAL_CALL OWriteStream::closeInput( )
}
uno::Reference< io::XInputStream > SAL_CALL OWriteStream::getInputStream()
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2186,7 +2186,7 @@ uno::Reference< io::XInputStream > SAL_CALL OWriteStream::getInputStream()
}
uno::Reference< io::XOutputStream > SAL_CALL OWriteStream::getOutputStream()
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2208,7 +2208,7 @@ void SAL_CALL OWriteStream::writeBytes( const uno::Sequence< sal_Int8 >& aData )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2275,7 +2275,7 @@ void SAL_CALL OWriteStream::flush()
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
// In case stream is flushed it's current version becomes visible
// to the parent storage. Usually parent storage flushes the stream
@@ -2326,7 +2326,7 @@ void SAL_CALL OWriteStream::closeOutput()
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2350,7 +2350,7 @@ void SAL_CALL OWriteStream::closeOutput()
void SAL_CALL OWriteStream::seek( sal_Int64 location )
throw ( lang::IllegalArgumentException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2370,7 +2370,7 @@ void SAL_CALL OWriteStream::seek( sal_Int64 location )
sal_Int64 SAL_CALL OWriteStream::getPosition()
throw ( io::IOException,
- uno::RuntimeException)
+ uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2390,7 +2390,7 @@ sal_Int64 SAL_CALL OWriteStream::getPosition()
sal_Int64 SAL_CALL OWriteStream::getLength()
throw ( io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2410,7 +2410,7 @@ sal_Int64 SAL_CALL OWriteStream::getLength()
void SAL_CALL OWriteStream::truncate()
throw ( io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2441,7 +2441,7 @@ void SAL_CALL OWriteStream::truncate()
}
void SAL_CALL OWriteStream::dispose()
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
// should be an internal method since it can be called only from parent storage
{
@@ -2506,7 +2506,7 @@ void SAL_CALL OWriteStream::dispose()
void SAL_CALL OWriteStream::addEventListener(
const uno::Reference< lang::XEventListener >& xListener )
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2522,7 +2522,7 @@ void SAL_CALL OWriteStream::addEventListener(
void SAL_CALL OWriteStream::removeEventListener(
const uno::Reference< lang::XEventListener >& xListener )
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2538,7 +2538,7 @@ void SAL_CALL OWriteStream::removeEventListener(
void SAL_CALL OWriteStream::setEncryptionPassword( const OUString& aPass )
throw ( uno::RuntimeException,
- io::IOException )
+ io::IOException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2559,7 +2559,7 @@ void SAL_CALL OWriteStream::setEncryptionPassword( const OUString& aPass )
void SAL_CALL OWriteStream::removeEncryption()
throw ( uno::RuntimeException,
- io::IOException )
+ io::IOException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2579,7 +2579,7 @@ void SAL_CALL OWriteStream::removeEncryption()
}
void SAL_CALL OWriteStream::setEncryptionData( const uno::Sequence< beans::NamedValue >& aEncryptionData )
- throw (io::IOException, uno::RuntimeException)
+ throw (io::IOException, uno::RuntimeException, std::exception)
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2599,7 +2599,7 @@ void SAL_CALL OWriteStream::setEncryptionData( const uno::Sequence< beans::Named
}
sal_Bool SAL_CALL OWriteStream::hasEncryptionData()
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2616,7 +2616,7 @@ sal_Bool SAL_CALL OWriteStream::hasEncryptionData()
sal_Bool SAL_CALL OWriteStream::hasByID( const OUString& sID )
throw ( io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2646,7 +2646,7 @@ sal_Bool SAL_CALL OWriteStream::hasByID( const OUString& sID )
OUString SAL_CALL OWriteStream::getTargetByID( const OUString& sID )
throw ( container::NoSuchElementException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2670,7 +2670,7 @@ OUString SAL_CALL OWriteStream::getTargetByID( const OUString& sID )
OUString SAL_CALL OWriteStream::getTypeByID( const OUString& sID )
throw ( container::NoSuchElementException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2694,7 +2694,7 @@ OUString SAL_CALL OWriteStream::getTypeByID( const OUString& sID )
uno::Sequence< beans::StringPair > SAL_CALL OWriteStream::getRelationshipByID( const OUString& sID )
throw ( container::NoSuchElementException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2723,7 +2723,7 @@ uno::Sequence< beans::StringPair > SAL_CALL OWriteStream::getRelationshipByID(
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getRelationshipsByType( const OUString& sType )
throw ( io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2757,7 +2757,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getRe
}
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getAllRelationships()
- throw (io::IOException, uno::RuntimeException)
+ throw (io::IOException, uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2776,7 +2776,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OWriteStream::getAl
void SAL_CALL OWriteStream::insertRelationshipByID( const OUString& sID, const uno::Sequence< beans::StringPair >& aEntry, ::sal_Bool bReplace )
throw ( container::ElementExistException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2839,7 +2839,7 @@ void SAL_CALL OWriteStream::insertRelationshipByID( const OUString& sID, const
void SAL_CALL OWriteStream::removeRelationshipByID( const OUString& sID )
throw ( container::NoSuchElementException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2880,7 +2880,7 @@ void SAL_CALL OWriteStream::removeRelationshipByID( const OUString& sID )
void SAL_CALL OWriteStream::insertRelationships( const uno::Sequence< uno::Sequence< beans::StringPair > >& aEntries, ::sal_Bool bReplace )
throw ( container::ElementExistException,
io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2961,7 +2961,7 @@ void SAL_CALL OWriteStream::insertRelationships( const uno::Sequence< uno::Sequ
void SAL_CALL OWriteStream::clearRelationships()
throw ( io::IOException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2980,7 +2980,7 @@ void SAL_CALL OWriteStream::clearRelationships()
}
uno::Reference< beans::XPropertySetInfo > SAL_CALL OWriteStream::getPropertySetInfo()
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -2993,7 +2993,7 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con
beans::PropertyVetoException,
lang::IllegalArgumentException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3118,7 +3118,7 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con
uno::Any SAL_CALL OWriteStream::getPropertyValue( const OUString& aProp )
throw ( beans::UnknownPropertyException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3173,7 +3173,7 @@ void SAL_CALL OWriteStream::addPropertyChangeListener(
const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/ )
throw ( beans::UnknownPropertyException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3191,7 +3191,7 @@ void SAL_CALL OWriteStream::removePropertyChangeListener(
const uno::Reference< beans::XPropertyChangeListener >& /*aListener*/ )
throw ( beans::UnknownPropertyException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3209,7 +3209,7 @@ void SAL_CALL OWriteStream::addVetoableChangeListener(
const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw ( beans::UnknownPropertyException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3227,7 +3227,7 @@ void SAL_CALL OWriteStream::removeVetoableChangeListener(
const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw ( beans::UnknownPropertyException,
lang::WrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3290,7 +3290,7 @@ void OWriteStream::BroadcastTransaction( sal_Int8 nMessage )
void SAL_CALL OWriteStream::commit()
throw ( io::IOException,
embed::StorageWrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
SAL_INFO( "package.xstor", "package (mv76033) OWriteStream::commit" );
@@ -3354,7 +3354,7 @@ void SAL_CALL OWriteStream::commit()
void SAL_CALL OWriteStream::revert()
throw ( io::IOException,
embed::StorageWrappedTargetException,
- uno::RuntimeException )
+ uno::RuntimeException, std::exception )
{
SAL_INFO( "package.xstor", "package (mv76033) OWriteStream::revert" );
@@ -3419,7 +3419,7 @@ void SAL_CALL OWriteStream::revert()
// XTransactionBroadcaster
void SAL_CALL OWriteStream::addTransactionListener( const uno::Reference< embed::XTransactionListener >& aListener )
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );
@@ -3437,7 +3437,7 @@ void SAL_CALL OWriteStream::addTransactionListener( const uno::Reference< embed:
}
void SAL_CALL OWriteStream::removeTransactionListener( const uno::Reference< embed::XTransactionListener >& aListener )
- throw ( uno::RuntimeException )
+ throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() );