diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-24 01:33:06 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-24 01:55:56 +0900 |
commit | c9a54f532e6fbe2302167a7f8cb829b397f2569c (patch) | |
tree | bcc192b3ecfc1a0f82642a525b34fac2318c0cec /remotebridges/examples | |
parent | 88b5b3688e516666fa693353a542b6c8302e6a45 (diff) |
catch exception by constant reference
Diffstat (limited to 'remotebridges/examples')
-rw-r--r-- | remotebridges/examples/officeclient.cxx | 8 |
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 ); |