contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 92 782e3408c2ab
parent 88 7f0462e8c3da
child 93 82b66994846c
--- a/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Fri Mar 26 13:00:55 2010 +0200
+++ b/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Fri Apr 16 14:45:49 2010 +0300
@@ -174,8 +174,6 @@
 //  
 void CCaWidgetStorageHandler::RemoveWidgetsL()
     {
-    RArray<TInt> widgetsToRemove;
-    CleanupClosePushL( widgetsToRemove );
     for( TInt i = 0; i < iWidgets.Count(); i++ )
         {
         if( iUpdatedIndexes.Find( i ) == KErrNotFound )
@@ -188,15 +186,10 @@
                 }
             else
                 {
-                widgetsToRemove.AppendL( iWidgets[i]->GetEntryId() );
+                SetMissingFlagL( iWidgets[i] );
                 }
             }
         }
-    if( widgetsToRemove.Count() > 0 )
-        {
-        iStorage->RemoveL( widgetsToRemove );
-        }
-    CleanupStack::PopAndDestroy( &widgetsToRemove );
     }
 
 // ----------------------------------------------------------------------------