summaryrefslogtreecommitdiff
path: root/i18nutil/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-23 01:18:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-23 10:35:45 +0100
commit7ba337359eaf76b73dfa7828e9efe8850257f9ce (patch)
treeb8a668617faa641a09f6fb8c24b83e0296e8c263 /i18nutil/source
parent050b80a6fc9b6f0c550c5ca20fa3c93e9552c13a (diff)
merge these similar methods together
Diffstat (limited to 'i18nutil/source')
-rw-r--r--i18nutil/source/utility/widthfolding.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx
index 1152d9e59bf2..ed636b2e5cc4 100644
--- a/i18nutil/source/utility/widthfolding.cxx
+++ b/i18nutil/source/utility/widthfolding.cxx
@@ -55,8 +55,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.
- rtl_uString * newStr;
- x_rtl_uString_new_WithLength( &newStr, nCount * 2 ); // defined in x_rtl_ustring.h The reference count is 0 now.
+ rtl_uString * newStr = x_rtl_uString_new_WithLength(nCount * 2 ); // defined in x_rtl_ustring.h The reference count is 0 now.
sal_Int32 *p = NULL;
sal_Int32 position = 0;