diff options
Diffstat (limited to 'i18npool/source/transliteration/ignoreWidth.cxx')
-rw-r--r-- | i18npool/source/transliteration/ignoreWidth.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx index ebe640c44808..ab4ade0ace75 100644 --- a/i18npool/source/transliteration/ignoreWidth.cxx +++ b/i18npool/source/transliteration/ignoreWidth.cxx @@ -31,25 +31,25 @@ OUString SAL_CALL ignoreWidth::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) throw(RuntimeException, std::exception) { - fullwidthToHalfwidth t1; - return t1.transliterate(inStr, startPos, nCount, offset); + Reference< fullwidthToHalfwidth > t1(new fullwidthToHalfwidth); + return t1->transliterate(inStr, startPos, nCount, offset); } Sequence< OUString > SAL_CALL ignoreWidth::transliterateRange( const OUString& str1, const OUString& str2 ) throw(RuntimeException, std::exception) { - fullwidthToHalfwidth t1; - halfwidthToFullwidth t2; + Reference< fullwidthToHalfwidth > t1(new fullwidthToHalfwidth); + Reference< halfwidthToFullwidth > t2(new halfwidthToFullwidth); - return transliteration_Ignore::transliterateRange(str1, str2, t1, t2); + return transliteration_Ignore::transliterateRange(str1, str2, *t1.get(), *t2.get()); } sal_Unicode SAL_CALL ignoreWidth::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, MultipleCharsOutputException, std::exception) { - fullwidthToHalfwidth t1; - return t1.transliterateChar2Char(inChar); + Reference< fullwidthToHalfwidth > t1(new fullwidthToHalfwidth); + return t1->transliterateChar2Char(inChar); } } } } } |