summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-07 16:29:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-07 17:10:47 +0100
commit8eed9e3ee1eeea68dcd65417a721b670c392b67a (patch)
treec740fbc0512d58c765ef0224f1ca81bdfb77954f /unotools
parentbdc777d0bfa0b16552405c1552c37144185b27de (diff)
catch by const reference
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/ucbstreamhelper.cxx18
1 files changed, 9 insertions, 9 deletions
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& )
{
}
}