summaryrefslogtreecommitdiff
path: root/i18npool/source/transliteration/transliteration_body.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/transliteration/transliteration_body.cxx')
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index 84ae11349a32..dcc659a07e12 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -34,6 +34,7 @@
#include <i18nutil/unicode.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <osl/diagnose.h>
#include <string.h>
@@ -129,7 +130,7 @@ Transliteration_body::transliterate(
const Mapping &map = casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType );
nOffCount += map.nmap;
}
- rtl_uString* pStr = x_rtl_uString_new_WithLength( nOffCount, 1 ); // our x_rtl_ustring.h
+ rtl_uString* pStr = comphelper::string::rtl_uString_alloc(nOffCount);
sal_Unicode* out = pStr->buffer;
if ( nOffCount != offset.getLength() )
@@ -199,7 +200,7 @@ OUString SAL_CALL
Transliteration_body::transliterateChar2String( sal_Unicode inChar ) throw(RuntimeException)
{
const Mapping &map = casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType);
- rtl_uString* pStr = x_rtl_uString_new_WithLength( map.nmap, 1 ); // our x_rtl_ustring.h
+ rtl_uString* pStr = comphelper::string::rtl_uString_alloc(map.nmap);
sal_Unicode* out = pStr->buffer;
sal_Int32 i;