From 50bf044cfa87fde9bce2b6870e222f2e42a0519f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 13 Apr 2011 10:51:35 +0100 Subject: [PATCH] catch by const reference --- regexp/source/reclass.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regexp/source/reclass.cxx b/regexp/source/reclass.cxx index ed766fdc2503..214667bcc3e0 100644 --- a/regexp/source/reclass.cxx +++ b/regexp/source/reclass.cxx @@ -1689,7 +1689,7 @@ Regexpr::regex_compile() sal_Unicode tmp = translit->transliterateChar2Char(c); BUF_PUSH(tmp); (*pending_exact)++; - } catch (::com::sun::star::i18n::MultipleCharsOutputException e) { + } catch (const ::com::sun::star::i18n::MultipleCharsOutputException& e) { ::rtl::OUString o2( translit->transliterateChar2String( c)); sal_Int32 len2 = o2.getLength(); const sal_Unicode * k2 = o2.getStr(); @@ -2934,7 +2934,7 @@ Regexpr::set_list_bit(sal_Unicode c, sal_Unicode *b) try { sal_Unicode tmp = translit->transliterateChar2Char(c); b[tmp / BYTEWIDTH] |= 1 << (tmp % BYTEWIDTH); - } catch (::com::sun::star::i18n::MultipleCharsOutputException e) { + } catch (const ::com::sun::star::i18n::MultipleCharsOutputException& e) { ::rtl::OUString o2( translit->transliterateChar2String( c)); sal_Int32 len2 = o2.getLength(); const sal_Unicode * k2 = o2.getStr();