locationmanager/locationtrail/src/locationremappingao.cpp
branchRCL_3
changeset 15 3cebc1a84278
parent 0 c53acadfccc6
child 17 50de4d668bb6
equal deleted inserted replaced
14:646a02f170b9 15:3cebc1a84278
   147 		}
   147 		}
   148 	
   148 	
   149 	// clear all "old" location id's from remap items
   149 	// clear all "old" location id's from remap items
   150 	if( removeLocations.Count() < 0 )
   150 	if( removeLocations.Count() < 0 )
   151 		{
   151 		{
   152 		index = iRemapItems.Count();
   152 		for( TInt i = iRemapItems.Count() - 1; i >=0; i-- )
   153 		for( TInt i = 0; i < index; i++ )
       
   154 			{
   153 			{
   155 			TInt err = removeLocations.Find( iRemapItems[i].iLocationId );
   154 			TInt err = removeLocations.Find( iRemapItems[i].iLocationId );
   156 			if ( err != KErrNotFound )
   155 			if ( err != KErrNotFound )
   157 				{
   156 				{
   158 				LOG( "CLocationRemappingAO::CheckQueue - old item found" );
   157 				LOG( "CLocationRemappingAO::CheckQueue - old item found" );