diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-29 09:59:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-01 09:58:56 +0200 |
commit | 55bc128636596032c23ee855904822ad813986fc (patch) | |
tree | ba097deaf15579f0148a68679d915e3ba25d52c4 /i18npool | |
parent | c9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff) |
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 07f7d100bf5f..3b07bb7792da 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -660,7 +660,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const NameSet aDefaultsSet; bool bCtypeIsRef = false; - for (sal_Int16 i = 0; i< getNumberOfChildren() ; i++, formatCount++) + for (sal_Int32 i = 0; i< getNumberOfChildren() ; i++, formatCount++) { LocaleNode * currNode = getChildAt (i); if ( currNode->getName() == "DateAcceptancePattern" ) diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 82dc3f2a6d83..3c7127076303 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -669,7 +669,7 @@ Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems( case REF_MONTHS: case REF_GMONTHS: case REF_PMONTHS: - for (sal_Int16 j = 0; j < nSize; ++j, ++pItem) + for (sal_Int32 j = 0; j < nSize; ++j, ++pItem) { CalendarItem2 item( allCalendars[rnOffset], allCalendars[rnOffset+1], allCalendars[rnOffset+2], allCalendars[rnOffset+3]); @@ -679,7 +679,7 @@ Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems( break; case REF_ERAS: // Absent narrow name. - for (sal_Int16 j = 0; j < nSize; ++j, ++pItem) + for (sal_Int32 j = 0; j < nSize; ++j, ++pItem) { CalendarItem2 item( allCalendars[rnOffset], allCalendars[rnOffset+1], allCalendars[rnOffset+2], OUString()); diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 4ff2f3e6dc1e..782c633f2626 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -222,7 +222,7 @@ TransliterationImpl::loadModuleNew( const Sequence < TransliterationModulesNew > sal_Int32 mask = 0, count = modType.getLength(); if (count > maxCascade) throw ERROR; // could not handle more than maxCascade - for (sal_Int16 i = 0; i < count; i++) { + for (sal_Int32 i = 0; i < count; i++) { for (sal_Int16 j = 0; TMlist[j].tmn; j++) { if (TMlist[j].tmn == modType[i]) { if (mask == 0) |