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

List:       kde-commits
Subject:    KDE/kdebase/runtime/nepomuk/services/backupsync/service
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2011-01-28 11:03:27
Message-ID: 20110128110327.CF229AC8BC () svn ! kde ! org
[Download RAW message or body]

SVN commit 1217735 by vhanda:

Only remove the iterator once you are done using it! I can't beleive I didn't see this last time.

BUG: 259723


 M  +1 -1      identificationset.cpp  


--- trunk/KDE/kdebase/runtime/nepomuk/services/backupsync/service/identificationset.cpp #1217734:1217735
@@ -97,10 +97,10 @@
         while( iter.hasNext() ) {
             const QUrl & uri = iter.next();
             done.insert( uri );
-            iter.remove();
             
             uris.append( Soprano::Node::resourceToN3( uri ) );
 
+            iter.remove();
             if( uris.size() == maxIterationSize )
                 break;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

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