summaryrefslogtreecommitdiff
path: root/i18npool/source
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 /i18npool/source
parent535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff)
catch exception by constant reference
Diffstat (limited to 'i18npool/source')
-rw-r--r--i18npool/source/localedata/saxparser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/localedata/saxparser.cxx b/i18npool/source/localedata/saxparser.cxx
index 2ac2db7ef044..2a5fd1efbb36 100644
--- a/i18npool/source/localedata/saxparser.cxx
+++ b/i18npool/source/localedata/saxparser.cxx
@@ -320,7 +320,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
::rtl::OUString::createFromAscii(argv[4]),
::rtl::OUString::createFromAscii(argv[5]), true );
}
- catch ( Exception &e )
+ catch ( const Exception &e )
{
printf( "Exception on createRegistryServiceFactory %s\n",
OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() );
@@ -358,7 +358,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
rParser->parseStream( source );
}
- catch( Exception & e )
+ catch( const Exception & e )
{
OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
printf( "Exception during parsing : %s\n" , o1.getStr() );