diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /unotools/source/streaming/streamwrap.cxx | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools/source/streaming/streamwrap.cxx')
-rw-r--r-- | unotools/source/streaming/streamwrap.cxx | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx index e54c2455e04c..dfce39da1699 100644 --- a/unotools/source/streaming/streamwrap.cxx +++ b/unotools/source/streaming/streamwrap.cxx @@ -32,7 +32,7 @@ using namespace ::com::sun::star::lang; //= OInputStreamWrapper //================================================================== DBG_NAME(OInputStreamWrapper) -//------------------------------------------------------------------ + OInputStreamWrapper::OInputStreamWrapper( SvStream& _rStream ) :m_pSvStream(&_rStream) ,m_bSvStreamOwner(false) @@ -41,7 +41,7 @@ OInputStreamWrapper::OInputStreamWrapper( SvStream& _rStream ) } -//------------------------------------------------------------------ + OInputStreamWrapper::OInputStreamWrapper( SvStream* pStream, bool bOwner ) :m_pSvStream( pStream ) ,m_bSvStreamOwner( bOwner ) @@ -50,7 +50,7 @@ OInputStreamWrapper::OInputStreamWrapper( SvStream* pStream, bool bOwner ) } -//------------------------------------------------------------------ + OInputStreamWrapper::~OInputStreamWrapper() { if( m_bSvStreamOwner ) @@ -59,7 +59,7 @@ OInputStreamWrapper::~OInputStreamWrapper() DBG_DTOR(OInputStreamWrapper,NULL); } -//------------------------------------------------------------------------------ + sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException ) { @@ -82,7 +82,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& return nRead; } -//------------------------------------------------------------------------------ + sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException ) { checkError(); @@ -99,7 +99,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readSomeBytes(staruno::Sequence< sal_Int return readBytes(aData, nMaxBytesToRead); } -//------------------------------------------------------------------------------ + void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -109,7 +109,7 @@ void SAL_CALL OInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( star checkError(); } -//------------------------------------------------------------------------------ + sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( stario::NotConnectedException, staruno::RuntimeException ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -128,7 +128,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::available() throw( stario::NotConnectedE return nAvailable; } -//------------------------------------------------------------------------------ + void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedException, staruno::RuntimeException ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -140,14 +140,14 @@ void SAL_CALL OInputStreamWrapper::closeInput() throw( stario::NotConnectedExcep m_pSvStream = NULL; } -//------------------------------------------------------------------------------ + void OInputStreamWrapper::checkConnected() const { if (!m_pSvStream) throw stario::NotConnectedException(OUString(), const_cast<staruno::XWeak*>(static_cast<const staruno::XWeak*>(this))); } -//------------------------------------------------------------------------------ + void OInputStreamWrapper::checkError() const { checkConnected(); @@ -160,19 +160,19 @@ void OInputStreamWrapper::checkError() const //================================================================== //= OSeekableInputStreamWrapper //================================================================== -//------------------------------------------------------------------------------ + OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(SvStream& _rStream) { SetStream( &_rStream, false ); } -//------------------------------------------------------------------------------ + OSeekableInputStreamWrapper::OSeekableInputStreamWrapper(SvStream* _pStream, bool _bOwner) { SetStream( _pStream, _bOwner ); } -//------------------------------------------------------------------------------ + void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -182,7 +182,7 @@ void SAL_CALL OSeekableInputStreamWrapper::seek( sal_Int64 _nLocation ) throw (I checkError(); } -//------------------------------------------------------------------------------ + sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition( ) throw (IOException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -193,7 +193,7 @@ sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getPosition( ) throw (IOExcepti return (sal_Int64)nPos; } -//------------------------------------------------------------------------------ + sal_Int64 SAL_CALL OSeekableInputStreamWrapper::getLength( ) throw (IOException, RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -233,19 +233,19 @@ void SAL_CALL OOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 } } -//------------------------------------------------------------------ + void SAL_CALL OOutputStreamWrapper::flush() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException ) { rStream.Flush(); checkError(); } -//------------------------------------------------------------------ + void SAL_CALL OOutputStreamWrapper::closeOutput() throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException ) { } -//------------------------------------------------------------------------------ + void OOutputStreamWrapper::checkError() const { if (rStream.GetError() != ERRCODE_NONE) @@ -256,7 +256,7 @@ void OOutputStreamWrapper::checkError() const //================================================================== //= OSeekableOutputStreamWrapper //================================================================== -//------------------------------------------------------------------------------ + OSeekableOutputStreamWrapper::OSeekableOutputStreamWrapper(SvStream& _rStream) :OOutputStreamWrapper(_rStream) { @@ -264,7 +264,7 @@ OSeekableOutputStreamWrapper::OSeekableOutputStreamWrapper(SvStream& _rStream) OSeekableOutputStreamWrapper::~OSeekableOutputStreamWrapper() {} -//------------------------------------------------------------------------------ + Any SAL_CALL OSeekableOutputStreamWrapper::queryInterface( const Type& _rType ) throw (RuntimeException) { Any aReturn = OOutputStreamWrapper::queryInterface(_rType); @@ -273,26 +273,26 @@ Any SAL_CALL OSeekableOutputStreamWrapper::queryInterface( const Type& _rType ) return aReturn; } -//------------------------------------------------------------------------------ + void SAL_CALL OSeekableOutputStreamWrapper::acquire( ) throw () { OOutputStreamWrapper::acquire(); } -//------------------------------------------------------------------------------ + void SAL_CALL OSeekableOutputStreamWrapper::release( ) throw () { OOutputStreamWrapper::release(); } -//------------------------------------------------------------------------------ + void SAL_CALL OSeekableOutputStreamWrapper::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException) { rStream.Seek((sal_uInt32)_nLocation); checkError(); } -//------------------------------------------------------------------------------ + sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getPosition( ) throw (IOException, RuntimeException) { sal_uInt32 nPos = rStream.Tell(); @@ -300,7 +300,7 @@ sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getPosition( ) throw (IOExcept return (sal_Int64)nPos; } -//------------------------------------------------------------------------------ + sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getLength( ) throw (IOException, RuntimeException) { sal_uInt32 nCurrentPos = rStream.Tell(); @@ -315,25 +315,25 @@ sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getLength( ) throw (IOExceptio return (sal_Int64)nEndPos; } -//------------------------------------------------------------------------------ + OStreamWrapper::OStreamWrapper(SvStream& _rStream) { SetStream( &_rStream, false ); } -//------------------------------------------------------------------------------ + ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL OStreamWrapper::getInputStream( ) throw (::com::sun::star::uno::RuntimeException) { return this; } -//------------------------------------------------------------------------------ + ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > SAL_CALL OStreamWrapper::getOutputStream( ) throw (::com::sun::star::uno::RuntimeException) { return this; } -//------------------------------------------------------------------------------ + void SAL_CALL OStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException) { sal_uInt32 nWritten = m_pSvStream->Write(aData.getConstArray(),aData.getLength()); @@ -346,7 +346,7 @@ void SAL_CALL OStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aD } } -//------------------------------------------------------------------------------ + void SAL_CALL OStreamWrapper::flush() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException) { m_pSvStream->Flush(); @@ -354,12 +354,12 @@ void SAL_CALL OStreamWrapper::flush() throw(stario::NotConnectedException, stari throw stario::NotConnectedException(OUString(),static_cast<staruno::XWeak*>(this)); } -//------------------------------------------------------------------------------ + void SAL_CALL OStreamWrapper::closeOutput() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException) { } -//------------------------------------------------------------------------------ + void SAL_CALL OStreamWrapper::truncate() throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { m_pSvStream->SetStreamSize(0); |