pimappservices/calendar/server/src/agsattachmentindex.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 0 f979ecb2b13e
child 31 97232defd20e
--- a/pimappservices/calendar/server/src/agsattachmentindex.cpp	Wed Mar 31 21:29:10 2010 +0300
+++ b/pimappservices/calendar/server/src/agsattachmentindex.cpp	Wed Apr 14 15:55:57 2010 +0300
@@ -281,7 +281,8 @@
 		{
 		// check every attachment
 		const CAgnAttachmentIndexItem* KAttachmentItem = iIndex[i];
-		for (TInt j = 0; j < KAttachmentItem->Entries().Count(); ++j)
+		const TInt entryCount = KAttachmentItem->Entries().Count();
+		for (TInt j = 0; j < entryCount; ++j)
 			{
 			// check every entry associated with each attachment
 			if (KEntryLocalUid == (KAttachmentItem->Entries())[j])