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

List:       kde-commits
Subject:    kdeutils/ark
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2004-10-26 13:24:50
Message-ID: 20041026132450.8F45F16CB2 () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

cache the addList().end operator, from Dario
CCMAIL=nekkar@libero.it


  M +3 -1      arkwidget.cpp   1.92


--- kdeutils/ark/arkwidget.cpp  #1.91:1.92
@@ -1236,5 +1236,7 @@ ArkWidget::action_add()
         addList = fileDlg.selectedURLs();
         QStringList * list = new QStringList();
-        for (KURL::List::ConstIterator it = addList.begin(); it != addList.end(); ++it)
+        //Here we pre-calculate the end of the list
+        KURL::List::ConstIterator endList = addList.end();
+        for (KURL::List::ConstIterator it = addList.begin(); it != endList; ++it)
             list->append( KURL::decode_string( (*it).url() ) );
 


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

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