[Libreoffice-commits] .: xmloff/source

Nigel Hawkins nhawkins at kemper.freedesktop.org
Tue Aug 9 07:51:39 PDT 2011


 xmloff/source/style/xmlnumfe.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 2642cdbcaba4830d04d20019412f9bac36519486
Author: Nigel Hawkins <n.hawkins at gmx.com>
Date:   Tue Aug 9 15:50:16 2011 +0100

    Replace SvUShorts with vector in xmloff/xmlnumfe.cxx
    
    LGPLv3+/MPL1.1

diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 6124414..77d2bb1 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(


More information about the Libreoffice-commits mailing list