summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 12:24:53 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 12:24:53 +0000
commite22ac249e5d2c6feb5bf710ccdfe2c52ba9d64f7 (patch)
tree9c28bc1fd83eccfec09547f8e48b577b3dc8d3e5 /i18npool
parent3d17cbadbe8fe5daf050781d2e56139a8aeec833 (diff)
INTEGRATION: CWS ooo20031216 (1.16.62); FILE MERGED
2003/12/13 14:12:59 waratah 1.16.62.1: #i22301# fix for scoping problems
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 2c0181c42bde..56720b870f6b 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: nativenumbersupplier.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: vg $ $Date: 2003-05-02 15:29:39 $
+ * last change: $Author: hr $ $Date: 2004-02-04 13:24:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -340,6 +340,7 @@ static OUString SAL_CALL NativeToAscii(const OUString& inStr,
if (useOffset)
offset.realloc( nCount * MultiplierExponent_7_CJK[0] + 1 );
sal_Int32 count = 0, index;
+ sal_Int32 i;
OUString numberChar, multiplierChar, decimalChar, minusChar;
numberChar = OUString((sal_Unicode*)NumberChar, 10*NumberChar_Count);
@@ -347,7 +348,7 @@ static OUString SAL_CALL NativeToAscii(const OUString& inStr,
decimalChar = OUString(DecimalChar, NumberChar_Count);
minusChar = OUString(MinusChar, NumberChar_Count);
- for (sal_Int32 i = 0; i < nCount; i++) {
+ for ( i = 0; i < nCount; i++) {
if ((index = multiplierChar.indexOf(str[i])) >= 0) {
if (count == 0 || !isNumber(newStr->buffer[count-1])) { // add 1 in front of multiplier
newStr->buffer[count] = NUMBER_ONE;