summaryrefslogtreecommitdiff
path: root/stoc/source/javavm
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-27 00:12:38 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-27 10:17:15 +0900
commitc936e5062770ba100c2eddd7889b51d271c6c73c (patch)
tree7ab2701dce9bfea7ac5b3b319a05a1aeb4a25cad /stoc/source/javavm
parent1d55be916472270d23f7d3ff7513dd6df6dc1e46 (diff)
catch exception by constant reference
Diffstat (limited to 'stoc/source/javavm')
-rw-r--r--stoc/source/javavm/javavm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 33d8280a764e..502031d5ef47 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -549,7 +549,7 @@ void initVMConfiguration(
try {
getINetPropsFromConfig(&jvm, xSMgr, xCtx);
}
- catch(css::uno::Exception & exception) {
+ catch(const css::uno::Exception & exception) {
#if OSL_DEBUG_LEVEL > 1
rtl::OString message = rtl::OUStringToOString(exception.Message, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE("javavm.cxx: can not get INetProps cause of >%s<", message.getStr());
@@ -561,7 +561,7 @@ void initVMConfiguration(
try {
getDefaultLocaleFromConfig(&jvm, xSMgr,xCtx);
}
- catch(css::uno::Exception & exception) {
+ catch(const css::uno::Exception & exception) {
#if OSL_DEBUG_LEVEL > 1
rtl::OString message = rtl::OUStringToOString(exception.Message, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE("javavm.cxx: can not get locale cause of >%s<", message.getStr());
@@ -574,7 +574,7 @@ void initVMConfiguration(
{
getJavaPropsFromSafetySettings(&jvm, xSMgr, xCtx);
}
- catch(css::uno::Exception & exception) {
+ catch(const css::uno::Exception & exception) {
#if OSL_DEBUG_LEVEL > 1
rtl::OString message = rtl::OUStringToOString(exception.Message, RTL_TEXTENCODING_ASCII_US);
OSL_TRACE("javavm.cxx: couldn't get safety settings because of >%s<", message.getStr());
@@ -1480,7 +1480,7 @@ void JavaVirtualMachine::registerConfigChangesListener()
if (m_xJavaConfiguration.is())
m_xJavaConfiguration->addContainerListener(this);
}
- }catch( css::uno::Exception & e)
+ }catch(const css::uno::Exception & e)
{
#if OSL_DEBUG_LEVEL > 1
rtl::OString message = rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);