mtpfws/mtpfw/src/cmtpreferencemgr.cpp
changeset 31 a26669f87b46
parent 0 d0791faffa3f
child 47 63cf70d3ecd8
equal deleted inserted replaced
29:3ae5cb0b4c02 31:a26669f87b46
   134 		CleanupClosePushL(toHandles);
   134 		CleanupClosePushL(toHandles);
   135 		
   135 		
   136 		for(TInt i = 0; i < count; i++)
   136 		for(TInt i = 0; i < count; i++)
   137 			{
   137 			{
   138 			TUint32 toHandle =  iObjectStore.HandleL(aToSuids[i]);
   138 			TUint32 toHandle =  iObjectStore.HandleL(aToSuids[i]);
   139 			toHandles.Append(toHandle);
   139 			toHandles.AppendL(toHandle);
   140 			}	
   140 			}	
   141 		
   141 		
   142 		SetReferencesL(fromHandle, toHandles);	
   142 		SetReferencesL(fromHandle, toHandles);	
   143 		CleanupStack::PopAndDestroy(&toHandles);
   143 		CleanupStack::PopAndDestroy(&toHandles);
   144 		}
   144 		}
   334 	RArray<TUint> tempArray;
   334 	RArray<TUint> tempArray;
   335 	CleanupClosePushL(tempArray);
   335 	CleanupClosePushL(tempArray);
   336 	TInt count = aToHandles.NumElements();
   336 	TInt count = aToHandles.NumElements();
   337 	for(TInt i = 0; i < count; i++)
   337 	for(TInt i = 0; i < count; i++)
   338 		{
   338 		{
   339 		tempArray.Append(aToHandles.ElementUint(i));
   339 		tempArray.AppendL(aToHandles.ElementUint(i));
   340 		}	
   340 		}	
   341 	SetReferencesL(aFromHandle.Value(), tempArray);
   341 	SetReferencesL(aFromHandle.Value(), tempArray);
   342 	CleanupStack::PopAndDestroy(&tempArray);
   342 	CleanupStack::PopAndDestroy(&tempArray);
   343 }
   343 }
   344 
   344