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

List:       kde-commits
Subject:    KDE/kdebase/workspace/kcontrol/kfontinst/dbus
From:       Craig Drummond <craig () kde ! org>
Date:       2010-01-28 20:46:24
Message-ID: 1264711584.262973.24085.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1081598 by craig:

More const iterator fixing.


 M  +8 -8      Helper.cpp  


--- trunk/KDE/kdebase/workspace/kcontrol/kfontinst/dbus/Helper.cpp #1081597:1081598
@@ -162,8 +162,8 @@
 
     if(FontInst::STATUS_OK==result)
     {
-        QStringList::ConstIterator it(files.begin()),
-                                   end(files.end());
+        QStringList::ConstIterator it(files.constBegin()),
+                                   end(files.constEnd());
 
         for(; it!=end; ++it)
             if(!Misc::fExists(*it) || QFile::remove(*it))
@@ -207,8 +207,8 @@
     KFI_DBUG << files << dest << toSystem;
 
     int                        result=FontInst::STATUS_OK;
-    QStringList::ConstIterator it(files.begin()),
-                               end(files.end());
+    QStringList::ConstIterator it(files.constBegin()),
+                               end(files.constEnd());
 
     // Cant move hidden fonts - need to unhide first.
     for(; it!=end && FontInst::STATUS_OK==result; ++it)
@@ -287,8 +287,8 @@
     int                     result=FontInst::STATUS_OK;
     FileCont                files((*font.styles().begin()).files()),
                             toggledFiles;
-    FileCont::ConstIterator it(files.begin()),
-                            end(files.end());
+    FileCont::ConstIterator it(files.constBegin()),
+                            end(files.constEnd());
     QHash<File, QString>    movedFonts;
     QHash<QString, QString> movedAssoc;
     QSet<QString>           modifiedDirs;
@@ -414,8 +414,8 @@
 
 int Helper::checkWriteAction(const QStringList &files)
 {
-    QStringList::ConstIterator it(files.begin()),
-                               end(files.end());
+    QStringList::ConstIterator it(files.constBegin()),
+                               end(files.constEnd());
 
     for(; it!=end; ++it)
         if(!Misc::dWritable(Misc::getDir(*it)))
[prev in list] [next in list] [prev in thread] [next in thread] 

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