[Libreoffice-commits] .: xmloff/source

Tor Lillqvist tml at kemper.freedesktop.org
Wed Feb 9 06:51:18 PST 2011


 xmloff/source/style/xmlnumfe.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit fa7bd86864051bfd2b9554ed8fecdd7d59e0cf84
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Wed Feb 9 16:49:32 2011 +0200

    Use const_iterator where required by tighter STL implementations

diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index c38ec02..0d92b8f 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -156,22 +156,22 @@ void SvXMLNumUsedList_Impl::SetUsed( sal_uInt32 nKey )
 
 sal_Bool SvXMLNumUsedList_Impl::IsUsed( sal_uInt32 nKey ) const
 {
-    SvXMLuInt32Set::iterator aItr = aUsed.find(nKey);
+    SvXMLuInt32Set::const_iterator aItr = aUsed.find(nKey);
     return (aItr != aUsed.end());
 }
 
 sal_Bool SvXMLNumUsedList_Impl::IsWasUsed( sal_uInt32 nKey ) const
 {
-    SvXMLuInt32Set::iterator aItr = aWasUsed.find(nKey);
+    SvXMLuInt32Set::const_iterator aItr = aWasUsed.find(nKey);
     return (aItr != aWasUsed.end());
 }
 
 void SvXMLNumUsedList_Impl::Export()
 {
-    SvXMLuInt32Set::iterator aItr = aUsed.begin();
+    SvXMLuInt32Set::const_iterator aItr = aUsed.begin();
     while (aItr != aUsed.end())
     {
-        std::pair<SvXMLuInt32Set::iterator, bool> aPair = aWasUsed.insert( *aItr );
+        std::pair<SvXMLuInt32Set::const_iterator, bool> aPair = aWasUsed.insert( *aItr );
         if (aPair.second)
             nWasUsedCount++;
         ++aItr;
@@ -214,7 +214,7 @@ void SvXMLNumUsedList_Impl::GetWasUsed(uno::Sequence<sal_Int32>& rWasUsed)
     sal_Int32* pWasUsed = rWasUsed.getArray();
     if (pWasUsed)
     {
-        SvXMLuInt32Set::iterator aItr = aWasUsed.begin();
+        SvXMLuInt32Set::const_iterator aItr = aWasUsed.begin();
         while (aItr != aWasUsed.end())
         {
             *pWasUsed = *aItr;
@@ -231,7 +231,7 @@ void SvXMLNumUsedList_Impl::SetWasUsed(const uno::Sequence<sal_Int32>& rWasUsed)
     const sal_Int32* pWasUsed = rWasUsed.getConstArray();
     for (sal_uInt16 i = 0; i < nCount; i++, pWasUsed++)
     {
-        std::pair<SvXMLuInt32Set::iterator, bool> aPair = aWasUsed.insert( *pWasUsed );
+        std::pair<SvXMLuInt32Set::const_iterator, bool> aPair = aWasUsed.insert( *pWasUsed );
         if (aPair.second)
             nWasUsedCount++;
     }


More information about the Libreoffice-commits mailing list