harvester/blacklistserver/src/blacklistserver.cpp
changeset 20 6dfc5f825351
parent 1 acef663c1218
child 15 3cebc1a84278
--- a/harvester/blacklistserver/src/blacklistserver.cpp	Tue Feb 02 00:24:33 2010 +0200
+++ b/harvester/blacklistserver/src/blacklistserver.cpp	Fri Mar 19 09:38:01 2010 +0200
@@ -747,14 +747,16 @@
     WRITELOG( "CBlacklistServer::CommitBufferedItemsL - begin" );
    
     // First, removed items
-    for ( TInt i( 0 ); i < iBufferedRemoveItems.Count(); ++i )
+    const TInt removedCount( iBufferedRemoveItems.Count() );
+    for ( TInt i( 0 ); i < removedCount; ++i )
         {
         iSqLiteConnection->ExecuteL( KMdsBlacklistDelete, *iBufferedRemoveItems[i] );
         iBufferedRemoveItems[i]->Column( 0 ).Free();      
         }
    
     // Second, added items
-    for ( TInt i( 0 ); i < iBufferedAddedItems.Count(); ++i )
+    const TInt addedCount( iBufferedAddedItems.Count() );
+    for ( TInt i( 0 ); i < addedCount; ++i )
         {
         iSqLiteConnection->ExecuteL( KMdsBlacklistUpdate, *iBufferedAddedItems[i] );
         iBufferedAddedItems[i]->Column( 0 ).Free();