[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/filters/kword/rtf/import
From:       Laurent Montel <montel () kde ! org>
Date:       2009-08-08 8:19:04
Message-ID: 1249719544.854387.18555.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1008727 by mlaurent:

fix iterator


 M  +3 -3      rtfimport.cpp  


--- trunk/koffice/filters/kword/rtf/import/rtfimport.cpp #1008726:1008727
@@ -723,14 +723,14 @@
         kwFormat.len = 0;
 
         // Process all styles in the style sheet
-        const QVector<RTFStyle>::ConstIterator endStyleSheet=styleSheet.end();
-        for (QVector<RTFStyle>::ConstIterator it=styleSheet.begin();it!=endStyleSheet;++it)
+        const QVector<RTFStyle>::ConstIterator endStyleSheet=styleSheet.constEnd();
+        for (QVector<RTFStyle>::ConstIterator it=styleSheet.constBegin();it!=endStyleSheet;++it)
         {
             mainDoc.addNode( "STYLE" );
             kwFormat.fmt = (*it).format;
 
             // Search for 'following' style
-            for (QVector<RTFStyle>::ConstIterator it2=styleSheet.begin();it2!=endStyleSheet;++it2)
+            for (QVector<RTFStyle>::ConstIterator it2=styleSheet.constBegin();it2!=endStyleSheet;++it2)
             {
                 if ((*it2).layout.style == (*it).next)
                 {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic