summaryrefslogtreecommitdiff
path: root/io/source
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:51:29 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:52:23 +0900
commit0f44079ce20ece1931c40f62584013ac6d1668e4 (patch)
treee18d86d4feac4d33f81f03eddf12d53c4391eba9 /io/source
parent535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff)
catch exception by constant reference
Diffstat (limited to 'io/source')
-rw-r--r--io/source/acceptor/acceptor.cxx2
-rw-r--r--io/source/connector/connector.cxx2
-rw-r--r--io/source/stm/opump.cxx16
3 files changed, 10 insertions, 10 deletions
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx
index 4920c5e2c991..f703d2d668ce 100644
--- a/io/source/acceptor/acceptor.cxx
+++ b/io/source/acceptor/acceptor.cxx
@@ -242,7 +242,7 @@ namespace io_acceptor
}
}
}
- catch (rtl::MalformedUriException & rEx)
+ catch (const rtl::MalformedUriException & rEx)
{
throw IllegalArgumentException(
rEx.getMessage(),
diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx
index bddbd260445b..e54000075b55 100644
--- a/io/source/connector/connector.cxx
+++ b/io/source/connector/connector.cxx
@@ -192,7 +192,7 @@ namespace stoc_connector
}
return r;
}
- catch (rtl::MalformedUriException & rEx)
+ catch (const rtl::MalformedUriException & rEx)
{
throw ConnectionSetupException(rEx.getMessage(),
Reference< XInterface > ());
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index 1ea93a036174..409fe59869a4 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -144,7 +144,7 @@ void Pump::fireError( const Any & exception )
{
static_cast< XStreamListener * > ( iter.next() )->error( exception );
}
- catch ( RuntimeException &e )
+ catch ( const RuntimeException &e )
{
OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() );
@@ -173,7 +173,7 @@ void Pump::fireClose()
{
static_cast< XStreamListener * > ( iter.next() )->closed( );
}
- catch ( RuntimeException &e )
+ catch ( const RuntimeException &e )
{
OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() );
@@ -191,7 +191,7 @@ void Pump::fireStarted()
{
static_cast< XStreamListener * > ( iter.next() )->started( );
}
- catch ( RuntimeException &e )
+ catch ( const RuntimeException &e )
{
OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() );
@@ -208,7 +208,7 @@ void Pump::fireTerminated()
{
static_cast< XStreamListener * > ( iter.next() )->terminated();
}
- catch ( RuntimeException &e )
+ catch ( const RuntimeException &e )
{
OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() );
@@ -297,15 +297,15 @@ void Pump::run()
osl_yieldThread();
}
}
- catch ( IOException & e )
+ catch ( const IOException & e )
{
fireError( makeAny( e ) );
}
- catch ( RuntimeException & e )
+ catch ( const RuntimeException & e )
{
fireError( makeAny( e ) );
}
- catch ( Exception & e )
+ catch ( const Exception & e )
{
fireError( makeAny( e ) );
}
@@ -313,7 +313,7 @@ void Pump::run()
close();
fireClose();
}
- catch ( com::sun::star::uno::Exception &e )
+ catch ( const com::sun::star::uno::Exception &e )
{
// we are the last on the stack.
// this is to avoid crashing the program, when e.g. a bridge crashes