pimappservices/calendar/server/src/agsattachmentindex.cpp
changeset 49 5de72ea7a065
parent 0 f979ecb2b13e
child 74 97232defd20e
equal deleted inserted replaced
37:360d55486d7f 49:5de72ea7a065
   279 	const TInt KEntryLocalUid = aEntry.LocalUid();
   279 	const TInt KEntryLocalUid = aEntry.LocalUid();
   280 	for (TInt i = iIndex.Count() - 1; i >= 0; --i)
   280 	for (TInt i = iIndex.Count() - 1; i >= 0; --i)
   281 		{
   281 		{
   282 		// check every attachment
   282 		// check every attachment
   283 		const CAgnAttachmentIndexItem* KAttachmentItem = iIndex[i];
   283 		const CAgnAttachmentIndexItem* KAttachmentItem = iIndex[i];
   284 		for (TInt j = 0; j < KAttachmentItem->Entries().Count(); ++j)
   284 		const TInt entryCount = KAttachmentItem->Entries().Count();
       
   285 		for (TInt j = 0; j < entryCount; ++j)
   285 			{
   286 			{
   286 			// check every entry associated with each attachment
   287 			// check every entry associated with each attachment
   287 			if (KEntryLocalUid == (KAttachmentItem->Entries())[j])
   288 			if (KEntryLocalUid == (KAttachmentItem->Entries())[j])
   288 				{
   289 				{
   289 				// If the entry being updated used to contain this attachment, check it still does
   290 				// If the entry being updated used to contain this attachment, check it still does