diff -r 2872ae438bf7 -r e538444823de harvester/common/src/harvestercenreputil.cpp --- a/harvester/common/src/harvestercenreputil.cpp Wed Sep 15 12:40:59 2010 +0300 +++ b/harvester/common/src/harvestercenreputil.cpp Wed Oct 13 15:02:02 2010 +0300 @@ -198,9 +198,7 @@ continue; } HBufC* pathBuf = path.AllocL(); - CleanupStack::PushL( pathBuf ); - aPaths.AppendL( pathBuf ); - CleanupStack::Pop( pathBuf ); + aPaths.Append( pathBuf ); } CleanupStack::PopAndDestroy( &scanPathKeys ); @@ -216,17 +214,14 @@ repo->FindL( aPartialKey, KSearchMask, scanPathKeys ); TBuf path; - for( TInt i = scanPathKeys.Count() - 1; i >=0; i-- ) { const TInt error( repo->Get( scanPathKeys[i], path ) ); - if( error != KErrNone ) { continue; } TUint32 preinstalled = MdeConstants::MediaObject::ENotPreinstalled; - if( path[ path.Length() - 1 ] != TChar('\\') ) { User::LeaveIfError( repo->GetMeta( scanPathKeys[i], preinstalled ) ); @@ -236,7 +231,7 @@ item->iPath = path.AllocL(); item->iPreinstalled = preinstalled; CleanupStack::Pop( item ); - aItems.AppendL( item ); // ownership is transferred + aItems.Append( item ); // ownership is transferred } CleanupStack::PopAndDestroy( &scanPathKeys );