From e1a1091d0ae61ba46c6d063a92db0b7d1ce65942 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 24 Aug 2011 11:22:56 +0900 Subject: catch ignored exceptions by const reference --- basic/source/runtime/iosys.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'basic/source/runtime/iosys.cxx') diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 6801c5db644f..77654904e017 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -450,7 +450,7 @@ UCBStream::~UCBStream() xIS_->closeInput(); } } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -478,7 +478,7 @@ sal_uIntPtr UCBStream::GetData( void* pData, sal_uIntPtr nSize ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -505,7 +505,7 @@ sal_uIntPtr UCBStream::PutData( const void* pData, sal_uIntPtr nSize ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -527,7 +527,7 @@ sal_uIntPtr UCBStream::SeekPos( sal_uIntPtr nPos ) else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -546,7 +546,7 @@ void UCBStream::FlushData() else SetError( ERRCODE_IO_GENERAL ); } - catch( Exception & ) + catch(const Exception & ) { SetError( ERRCODE_IO_GENERAL ); } @@ -610,7 +610,7 @@ SbError SbiStream::Open } } - catch( Exception & ) + catch(const Exception & ) { nError = ERRCODE_IO_GENERAL; } -- cgit