diff options
Diffstat (limited to 'io/test/testcomponent.cxx')
-rw-r--r-- | io/test/testcomponent.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io/test/testcomponent.cxx b/io/test/testcomponent.cxx index 29351b18dcfc..6e789dba6e10 100644 --- a/io/test/testcomponent.cxx +++ b/io/test/testcomponent.cxx @@ -93,7 +93,7 @@ int main (int argc, char **argv) xSimpleReg ); } } - catch( Exception &e ) { + catch( const Exception &e ) { printf( "%s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ); exit(1); @@ -119,7 +119,7 @@ int main (int argc, char **argv) aDllName, xSimpleReg ); } - catch( Exception & e ) + catch( Exception & ) { printf( "Couldn't reach dll %s\n" , szBuf ); exit(1); @@ -163,7 +163,7 @@ int main (int argc, char **argv) nNewHandle = xTest->test( OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) , x , nHandle ); } - catch( Exception & e ) { + catch( const Exception & e ) { OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ); printf( "testcomponent : uncaught exception %s\n" , o.getStr() ); exit(1); |