diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-06 00:03:58 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-01-06 00:22:51 +0900 |
commit | 5493951893ea90b330d5280bc171a60ff46fa396 (patch) | |
tree | 97dee1e30575dc05959acaa2cec6da9b791022d7 /svtools/workben | |
parent | 1bae43a3d75d9be75b027dab2eff12695ad4f353 (diff) |
catch exception by constant reference
Diffstat (limited to 'svtools/workben')
-rw-r--r-- | svtools/workben/svdem.cxx | 2 | ||||
-rw-r--r-- | svtools/workben/treecontrol/treetest.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/workben/svdem.cxx b/svtools/workben/svdem.cxx index 776f67e0a97d..3989a0c8d029 100644 --- a/svtools/workben/svdem.cxx +++ b/svtools/workben/svdem.cxx @@ -254,7 +254,7 @@ void MyApp::Main() Execute(); } - catch ( com::sun::star::uno::Exception & e ) + catch ( const com::sun::star::uno::Exception & e ) { fprintf( stderr, "Error during bootstrapping servicemanager: %s\n" , rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); diff --git a/svtools/workben/treecontrol/treetest.cxx b/svtools/workben/treecontrol/treetest.cxx index 4a9be57a3c39..53027052dd40 100644 --- a/svtools/workben/treecontrol/treetest.cxx +++ b/svtools/workben/treecontrol/treetest.cxx @@ -358,7 +358,7 @@ int SAL_CALL main( int argc, char **argv ) xInterface = Reference< XInterface >( resolver->resolve( sConnectionString ), UNO_QUERY ); } - catch ( Exception& e ) + catch ( const Exception& e ) { printf("Error: cannot establish a connection using '%s':\n %s\n", OUStringToOString(sConnectionString, RTL_TEXTENCODING_ASCII_US).getStr(), @@ -382,7 +382,7 @@ int SAL_CALL main( int argc, char **argv ) rtl::Reference< DirectoryTree >( new DirectoryTree( xComponentContext ) )->display(ustrFileURL); } - catch( Exception& e ) + catch( const Exception& e ) { printf("Error: exception caught during test:\n %s\n", OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr()); |