summaryrefslogtreecommitdiff
path: root/regexp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-13 10:51:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-13 10:51:35 +0100
commit50bf044cfa87fde9bce2b6870e222f2e42a0519f (patch)
treefe16e74b01609d4d38d469a04a21e820707f8593 /regexp
parent8955cc0c39a2c4a5ec5f11e17e6535b02c19dbed (diff)
catch by const reference
Diffstat (limited to 'regexp')
-rw-r--r--regexp/source/reclass.cxx4
1 files 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();