summaryrefslogtreecommitdiff
path: root/remotebridges/examples
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/examples
parent88b5b3688e516666fa693353a542b6c8302e6a45 (diff)
catch exception by constant reference
Diffstat (limited to 'remotebridges/examples')
-rw-r--r--remotebridges/examples/officeclient.cxx8
1 files changed, 4 insertions, 4 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 );