diff options
Diffstat (limited to 'io/source/stm/opipe.cxx')
-rw-r--r-- | io/source/stm/opipe.cxx | 87 |
1 files changed, 20 insertions, 67 deletions
diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx index 4d70e6709ad3..abba00fa8bad 100644 --- a/io/source/stm/opipe.cxx +++ b/io/source/stm/opipe.cxx @@ -58,53 +58,29 @@ public: OPipeImpl( ); public: // XInputStream - virtual sal_Int32 SAL_CALL readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; - virtual sal_Int32 SAL_CALL readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; - virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; - virtual sal_Int32 SAL_CALL available() - throw( NotConnectedException, - RuntimeException, std::exception ) override; - virtual void SAL_CALL closeInput() - throw( NotConnectedException, - RuntimeException, std::exception ) override; + virtual sal_Int32 SAL_CALL readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) override; + virtual sal_Int32 SAL_CALL readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) override; + virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) override; + virtual sal_Int32 SAL_CALL available() override; + virtual void SAL_CALL closeInput() override; public: // XOutputStream - virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; - virtual void SAL_CALL flush() - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; - virtual void SAL_CALL closeOutput() - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) override; + virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData) override; + virtual void SAL_CALL flush() override; + virtual void SAL_CALL closeOutput() override; public: // XConnectable - virtual void SAL_CALL setPredecessor(const Reference< XConnectable >& aPredecessor) - throw( RuntimeException, std::exception ) override; - virtual Reference< XConnectable > SAL_CALL getPredecessor() throw( RuntimeException, std::exception ) override; - virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor) - throw( RuntimeException, std::exception ) override; - virtual Reference < XConnectable > SAL_CALL getSuccessor() throw( RuntimeException, std::exception ) override ; + virtual void SAL_CALL setPredecessor(const Reference< XConnectable >& aPredecessor) override; + virtual Reference< XConnectable > SAL_CALL getPredecessor() override; + virtual void SAL_CALL setSuccessor(const Reference < XConnectable > & aSuccessor) override; + virtual Reference < XConnectable > SAL_CALL getSuccessor() override ; public: // XServiceInfo - OUString SAL_CALL getImplementationName() throw(std::exception ) override; - Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(std::exception ) override; - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(std::exception ) override; + OUString SAL_CALL getImplementationName() override; + Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; private: @@ -133,7 +109,6 @@ OPipeImpl::OPipeImpl() sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) - throw( NotConnectedException, BufferSizeExceededException,RuntimeException, std::exception ) { while( true ) { @@ -171,9 +146,6 @@ sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRe sal_Int32 OPipeImpl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) { while( true ) { { @@ -205,9 +177,6 @@ sal_Int32 OPipeImpl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBy void OPipeImpl::skipBytes(sal_Int32 nBytesToSkip) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception ) { MutexGuard guard( m_mutexAccess ); if( m_bInputStreamClosed ) @@ -234,8 +203,6 @@ void OPipeImpl::skipBytes(sal_Int32 nBytesToSkip) sal_Int32 OPipeImpl::available() - throw( NotConnectedException, - RuntimeException, std::exception ) { MutexGuard guard( m_mutexAccess ); if( m_bInputStreamClosed ) @@ -248,8 +215,6 @@ sal_Int32 OPipeImpl::available() } void OPipeImpl::closeInput() - throw( NotConnectedException, - RuntimeException, std::exception) { MutexGuard guard( m_mutexAccess ); @@ -266,9 +231,6 @@ void OPipeImpl::closeInput() void OPipeImpl::writeBytes(const Sequence< sal_Int8 >& aData) - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception) { MutexGuard guard( m_mutexAccess ); @@ -313,18 +275,12 @@ void OPipeImpl::writeBytes(const Sequence< sal_Int8 >& aData) void OPipeImpl::flush() - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception) { // nothing to do for a pipe return; } void OPipeImpl::closeOutput() - throw( NotConnectedException, - BufferSizeExceededException, - RuntimeException, std::exception) { MutexGuard guard( m_mutexAccess ); @@ -336,7 +292,6 @@ void OPipeImpl::closeOutput() void OPipeImpl::setSuccessor( const Reference < XConnectable > &r ) - throw( RuntimeException, std::exception ) { /// if the references match, nothing needs to be done if( m_succ != r ) { @@ -351,7 +306,7 @@ void OPipeImpl::setSuccessor( const Reference < XConnectable > &r ) } } -Reference < XConnectable > OPipeImpl::getSuccessor() throw( RuntimeException, std::exception ) +Reference < XConnectable > OPipeImpl::getSuccessor() { return m_succ; } @@ -359,7 +314,6 @@ Reference < XConnectable > OPipeImpl::getSuccessor() throw( RuntimeException, // XDataSource void OPipeImpl::setPredecessor( const Reference < XConnectable > &r ) - throw( RuntimeException, std::exception ) { if( r != m_pred ) { m_pred = r; @@ -370,26 +324,26 @@ void OPipeImpl::setPredecessor( const Reference < XConnectable > &r ) } } -Reference < XConnectable > OPipeImpl::getPredecessor() throw( RuntimeException, std::exception ) +Reference < XConnectable > OPipeImpl::getPredecessor() { return m_pred; } // XServiceInfo -OUString OPipeImpl::getImplementationName() throw(std::exception ) +OUString OPipeImpl::getImplementationName() { return OPipeImpl_getImplementationName(); } // XServiceInfo -sal_Bool OPipeImpl::supportsService(const OUString& ServiceName) throw(std::exception ) +sal_Bool OPipeImpl::supportsService(const OUString& ServiceName) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > OPipeImpl::getSupportedServiceNames() throw(std::exception ) +Sequence< OUString > OPipeImpl::getSupportedServiceNames() { return OPipeImpl_getSupportedServiceNames(); } @@ -402,7 +356,6 @@ Sequence< OUString > OPipeImpl::getSupportedServiceNames() throw(std::exception Reference < XInterface > SAL_CALL OPipeImpl_CreateInstance( SAL_UNUSED_PARAMETER const Reference < XComponentContext > & ) - throw(Exception) { OPipeImpl *p = new OPipeImpl; |