summaryrefslogtreecommitdiff
path: root/remotebridges
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-24 01:33:06 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-24 01:55:56 +0900
commitc9a54f532e6fbe2302167a7f8cb829b397f2569c (patch)
treebcc192b3ecfc1a0f82642a525b34fac2318c0cec /remotebridges
parent88b5b3688e516666fa693353a542b6c8302e6a45 (diff)
catch exception by constant reference
Diffstat (limited to 'remotebridges')
-rw-r--r--remotebridges/examples/officeclient.cxx8
-rw-r--r--remotebridges/source/unourl_resolver/unourl_resolver.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/remotebridges/examples/officeclient.cxx b/remotebridges/examples/officeclient.cxx
index 40c902332406..adce0c14b7fd 100644
--- a/remotebridges/examples/officeclient.cxx
+++ b/remotebridges/examples/officeclient.cxx
@@ -214,25 +214,25 @@ sal_Int32 OfficeClientMain::run( const Sequence< OUString > & aArguments ) throw
}
}
- catch( ConnectionSetupException &e )
+ catch( const ConnectionSetupException &e )
{
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
printf( "%s\n", o.pData->buffer );
printf( "couldn't access local resource ( possible security resons )\n" );
}
- catch( NoConnectException &e )
+ catch( const NoConnectException &e )
{
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
printf( "%s\n", o.pData->buffer );
printf( "no server listening on the resource\n" );
}
- catch( IllegalArgumentException &e )
+ catch( const IllegalArgumentException &e )
{
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
printf( "%s\n", o.pData->buffer );
printf( "uno url invalid\n" );
}
- catch( RuntimeException & e )
+ catch( const RuntimeException & e )
{
OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US );
printf( "%s\n", o.pData->buffer );
diff --git a/remotebridges/source/unourl_resolver/unourl_resolver.cxx b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
index 459f2fe0efd0..f3abd3d125cc 100644
--- a/remotebridges/source/unourl_resolver/unourl_resolver.cxx
+++ b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
@@ -150,7 +150,7 @@ Reference< XInterface > ResolverImpl::resolve( const OUString & rUnoUrl )
aConnectDescr = aUrl.getConnection().getDescriptor();
aInstanceName = aUrl.getObjectName();
}
- catch (rtl::MalformedUriException & rEx)
+ catch (const rtl::MalformedUriException & rEx)
{
throw ConnectionSetupException(rEx.getMessage(), 0);
}