summaryrefslogtreecommitdiff
path: root/io/test/testcomponent.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:51:29 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:52:23 +0900
commit0f44079ce20ece1931c40f62584013ac6d1668e4 (patch)
treee18d86d4feac4d33f81f03eddf12d53c4391eba9 /io/test/testcomponent.cxx
parent535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff)
catch exception by constant reference
Diffstat (limited to 'io/test/testcomponent.cxx')
-rw-r--r--io/test/testcomponent.cxx6
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);