pimappservices/calendar/server/src/agsattachmentindex.cpp
branchRCL_3
changeset 74 97232defd20e
parent 20 21239b3bcd78
child 86 ed599363c2d7
--- a/pimappservices/calendar/server/src/agsattachmentindex.cpp	Wed Sep 01 12:32:31 2010 +0100
+++ b/pimappservices/calendar/server/src/agsattachmentindex.cpp	Tue Sep 14 21:17:03 2010 +0300
@@ -281,8 +281,7 @@
 		{
 		// check every attachment
 		const CAgnAttachmentIndexItem* KAttachmentItem = iIndex[i];
-		const TInt entryCount = KAttachmentItem->Entries().Count();
-		for (TInt j = 0; j < entryCount; ++j)
+		for (TInt j = 0; j < KAttachmentItem->Entries().Count(); ++j)
 			{
 			// check every entry associated with each attachment
 			if (KEntryLocalUid == (KAttachmentItem->Entries())[j])