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

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

SVN commit 1217738 by vhanda:

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



 M  +1 -1      identificationset.cpp  


--- branches/KDE/4.6/kdebase/runtime/nepomuk/services/backupsync/service/identificationset.cpp \
#1217737:1217738 @@ -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