From 8eed9e3ee1eeea68dcd65417a721b670c392b67a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 7 Jun 2011 16:29:26 +0100 Subject: catch by const reference --- unotools/source/ucbhelper/ucbstreamhelper.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'unotools') diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx index b6692e260940..62ab90eb3998 100644 --- a/unotools/source/ucbhelper/ucbstreamhelper.cxx +++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx @@ -75,14 +75,14 @@ static SvStream* lcl_CreateStream( const String& rFileName, StreamMode eOpenMode aCnt.executeCommand( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("delete")), makeAny( sal_Bool( sal_True ) ) ); } - catch ( CommandAbortedException& ) + catch ( const CommandAbortedException& ) { // couldn't truncate/delete } - catch ( ContentCreationException& ) + catch ( const ContentCreationException& ) { } - catch ( Exception& ) + catch ( const Exception& ) { } } @@ -107,14 +107,14 @@ static SvStream* lcl_CreateStream( const String& rFileName, StreamMode eOpenMode } // it is NOT an error when the stream already exists and no truncation was desired - catch ( CommandAbortedException& ) + catch ( const CommandAbortedException& ) { // currently never an error is detected ! } - catch ( ContentCreationException& ) + catch ( const ContentCreationException& ) { } - catch ( Exception& ) + catch ( const Exception& ) { } } @@ -133,13 +133,13 @@ static SvStream* lcl_CreateStream( const String& rFileName, StreamMode eOpenMode pStream->SetError( xLockBytes->GetError() ); } } - catch ( CommandAbortedException& ) + catch ( const CommandAbortedException& ) { } - catch ( ContentCreationException& ) + catch ( const ContentCreationException& ) { } - catch ( Exception& ) + catch ( const Exception& ) { } } -- cgit v1.2.3