contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 66 32469d7d46ff
parent 61 8e5041d13c84
child 73 4bc7b118b3df
--- a/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Fri Apr 16 15:16:09 2010 +0300
+++ b/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Mon May 03 12:48:45 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 );
     }
 
 // ----------------------------------------------------------------------------