From c936e5062770ba100c2eddd7889b51d271c6c73c Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 27 Dec 2011 00:12:38 +0900 Subject: catch exception by constant reference --- stoc/source/javaloader/javaloader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stoc/source/javaloader') diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index b30df67e221d..62e4a1c0e741 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -417,7 +417,7 @@ css::uno::Reference SAL_CALL JavaComponentLoader_CreateInstance(cons pStaticRef = new css::uno::Reference< XInterface > ( xRet ); } } - catch(RuntimeException & runtimeException) { + catch(const RuntimeException & runtimeException) { OString message = OUStringToOString(runtimeException.Message, RTL_TEXTENCODING_ASCII_US); osl_trace("javaloader - could not init javaloader cause of %s", message.getStr()); throw; -- cgit