diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-01 23:32:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-02 09:54:17 +0100 |
commit | cd9038dd398db0710273e4be5fb5310ec2f2c642 (patch) | |
tree | 8cd01dd7985c3f04c53dc275af7b64f46d4f67d2 /i18nutil/source | |
parent | a2d55e1869a37247549dc6d126e4cfbbf98ef024 (diff) |
move to comphelper, and rename
Diffstat (limited to 'i18nutil/source')
-rw-r--r-- | i18nutil/source/utility/widthfolding.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx index edfe573e70be..ebcd4c2043b7 100644 --- a/i18nutil/source/utility/widthfolding.cxx +++ b/i18nutil/source/utility/widthfolding.cxx @@ -29,7 +29,7 @@ // prevent internal compiler error with MSVC6SP3 #include <utility> #include <i18nutil/widthfolding.hxx> -#include <i18nutil/x_rtl_ustring.h> +#include <comphelper/string.hxx> #include "widthfolding_data.h" using namespace com::sun::star::uno; @@ -56,7 +56,7 @@ OUString widthfolding::decompose_ja_voiced_sound_marks (const OUString& inStr, s // Create a string buffer which can hold nCount * 2 + 1 characters. // Its size may become double of nCount. // The reference count is 1 now. - rtl_uString * newStr = x_rtl_uString_new_WithLength(nCount * 2); + rtl_uString * newStr = comphelper::string::rtl_uString_alloc(nCount * 2); sal_Int32 *p = NULL; sal_Int32 position = 0; @@ -118,7 +118,7 @@ OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal // Create a string buffer which can hold nCount + 1 characters. // Its size may become equal to nCount or smaller. // The reference count is 1 now. - rtl_uString * newStr = x_rtl_uString_new_WithLength(nCount); + rtl_uString * newStr = comphelper::string::rtl_uString_alloc(nCount); // Prepare pointers of unicode character arrays. const sal_Unicode* src = inStr.getStr() + startPos; |