summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 10:54:46 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 10:54:46 +0000
commit308f454593249805923da092698427cb107ada9d (patch)
treee1c62dc1c94ed2e5862bf6f2ca6e96c87690551d /i18nutil
parent6a5d82d223b7ed30ee6b8af09bdd7a4b02dd80df (diff)
INTEGRATION: CWS ooo20031216 (1.2.36); FILE MERGED
2004/01/23 13:04:58 mh 1.2.36.2: RESYNC: (1.2-1.3); FILE MERGED 2003/12/23 11:08:01 waratah 1.2.36.1: #i1858# unitialised variable: remove gcc warning only
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/widthfolding.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx
index 50707a67f7ac..a1bbb8247b03 100644
--- a/i18nutil/source/utility/widthfolding.cxx
+++ b/i18nutil/source/utility/widthfolding.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: widthfolding.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2003-12-17 15:40:14 $
+ * last change: $Author: hr $ $Date: 2004-02-04 11:54:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -90,7 +90,8 @@ OUString widthfolding::decompose_ja_voiced_sound_marks (const OUString& inStr, s
rtl_uString * newStr;
x_rtl_uString_new_WithLength( &newStr, nCount * 2 ); // defined in x_rtl_ustring.h The reference count is 0 now.
- sal_Int32 *p, position;
+ sal_Int32 *p = NULL;
+ sal_Int32 position = 0;
if (useOffset) {
// Allocate double of nCount length to offset argument.
offset.realloc( nCount * 2 );
@@ -167,7 +168,8 @@ OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal
// will be converted to
// .. .. GA .. ..
- sal_Int32 *p, position;
+ sal_Int32 *p = NULL;
+ sal_Int32 position = 0;
if (useOffset) {
// Allocate nCount length to offset argument.
offset.realloc( nCount );