diff options
author | Nigel Hawkins <n.hawkins@gmx.com> | 2011-08-09 15:50:16 +0100 |
---|---|---|
committer | Nigel Hawkins <n.hawkins@gmx.com> | 2011-08-09 15:51:32 +0100 |
commit | 2642cdbcaba4830d04d20019412f9bac36519486 (patch) | |
tree | 9905576969cabd5e9f8b7c0ac2165233ac589a65 /xmloff | |
parent | Resolves: fdo#38981 implement saving/loading PROPVARIANT::DATE ole2 property (diff) | |
download | core-2642cdbcaba4830d04d20019412f9bac36519486.tar.gz core-2642cdbcaba4830d04d20019412f9bac36519486.zip |
Replace SvUShorts with vector in xmloff/xmlnumfe.cxx
LGPLv3+/MPL1.1
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 6124414ffe5b..77d2bb1e31db 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -1696,12 +1696,11 @@ void SvXMLNumFmtExport::Export( sal_Bool bIsAutoStyle ) } if (!bIsAutoStyle) { - SvUShorts aLanguages; + std::vector<sal_uInt16> aLanguages; pFormatter->GetUsedLanguages( aLanguages ); - sal_uInt16 nLangCount = aLanguages.Count(); - for (sal_uInt16 nLangPos=0; nLangPos<nLangCount; nLangPos++) + for (std::vector<sal_uInt16>::const_iterator it(aLanguages.begin()); it != aLanguages.end(); ++it) { - LanguageType nLang = aLanguages[nLangPos]; + LanguageType nLang = *it; sal_uInt32 nDefaultIndex = 0; SvNumberFormatTable& rTable = pFormatter->GetEntryTable( |