summaryrefslogtreecommitdiff
path: root/i18npool/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:05:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 12:29:46 +0200
commit639511d7194726b188a2ecae9b3489a250532d03 (patch)
treeaf8195623e940c171934b9bbbe16acbc38e0d378 /i18npool/source
parentcf46500243c51071227e08c5067041e414180ebc (diff)
use for-range on Sequence in i18npool..sd
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source')
-rw-r--r--i18npool/source/localedata/localedata.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index d72d28e12298..4a8e565dc8e1 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -1260,7 +1260,6 @@ LocaleDataImpl::getContinuousNumberingLevels( const lang::Locale& rLocale )
if ( func )
{
- int i;
// invoke function
sal_Int16 nStyles;
sal_Int16 nAttributes;
@@ -1268,12 +1267,12 @@ LocaleDataImpl::getContinuousNumberingLevels( const lang::Locale& rLocale )
// allocate memory for nAttributes attributes for each of the nStyles styles.
Sequence< Sequence<beans::PropertyValue> > pv( nStyles );
- for( i=0; i<pv.getLength(); i++ ) {
- pv[i] = Sequence<beans::PropertyValue>( nAttributes );
+ for( auto& i : pv ) {
+ i = Sequence<beans::PropertyValue>( nAttributes );
}
sal_Unicode const *** pStyle = p0;
- for( i=0; i<nStyles; i++ ) {
+ for( int i=0; i<nStyles; i++ ) {
sal_Unicode const ** pAttribute = pStyle[i];
for( int j=0; j<nAttributes; j++ ) { // prefix, numberingtype, ...
sal_Unicode const * pString = pAttribute[j];