summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-27 13:03:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-27 13:03:42 +0100
commit5d84a5a591ff353fbd386be5f1f4192e5606897f (patch)
tree4ab28cf9b1a1e8086192235405a4c3fcfbbf92ba /svl
parent36a5d940e7b95cf96e23bcd6dc70c28ce52db2b1 (diff)
loplugin:loopvartoosmall
Change-Id: I2e80e15ded19e09853ec16f9876e425a88cf910e
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforlist.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index c9dab539f463..9266c4399ea0 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -2800,7 +2800,6 @@ OUString SvNumberFormatter::GenerateFormat(sal_uInt32 nIndex,
eLnge = IniLnge;
}
short eType = GetType(nIndex);
- sal_uInt16 i;
ImpGenerateCL(eLnge); // create new standard formats if necessary
utl::DigitGroupingIterator aGrouping( xLocaleData->getDigitGrouping());
@@ -2833,7 +2832,7 @@ OUString SvNumberFormatter::GenerateFormat(sal_uInt32 nIndex,
}
else
{
- for (i = 0; i < nLeadingZeros; i++)
+ for (sal_uInt16 i = 0; i < nLeadingZeros; i++)
{
if (bThousand && i > 0 && i == aGrouping.getPos())
{
@@ -2845,7 +2844,7 @@ OUString SvNumberFormatter::GenerateFormat(sal_uInt32 nIndex,
if ( bThousand )
{
sal_Int32 nDigits = (eType == css::util::NumberFormat::SCIENTIFIC) ? 3*((nLeadingZeros-1)/3 + 1) : nDigitsInFirstGroup + 1;
- for (i = nLeadingZeros; i < nDigits; i++)
+ for (sal_Int32 i = nLeadingZeros; i < nDigits; i++)
{
if ( i % nDigitsInFirstGroup == 0 )
sString.insert(0, rThSep);