summaryrefslogtreecommitdiff
path: root/javaunohelper
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 /javaunohelper
parent535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff)
catch exception by constant reference
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/bootstrap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/javaunohelper/source/bootstrap.cxx b/javaunohelper/source/bootstrap.cxx
index 75f171c29a5a..4e2c10047967 100644
--- a/javaunohelper/source/bootstrap.cxx
+++ b/javaunohelper/source/bootstrap.cxx
@@ -160,7 +160,7 @@ extern "C" JNIEXPORT jobject JNICALL Java_com_sun_star_comp_helper_Bootstrap_cpp
return jlocal;
}
- catch (RuntimeException & exc)
+ catch (const RuntimeException & exc)
{
jclass c = jni_env->FindClass( "com/sun/star/uno/RuntimeException" );
if (0 != c)
@@ -171,7 +171,7 @@ extern "C" JNIEXPORT jobject JNICALL Java_com_sun_star_comp_helper_Bootstrap_cpp
jni_env->ThrowNew( c, cstr.getStr() );
}
}
- catch (Exception & exc)
+ catch (const Exception & exc)
{
jclass c = jni_env->FindClass( "com/sun/star/uno/Exception" );
if (0 != c)