--- a/pimappservices/calendar/server/src/agsattachmentindex.cpp Fri Jun 11 13:37:54 2010 +0300
+++ b/pimappservices/calendar/server/src/agsattachmentindex.cpp Wed Jun 23 18:11:28 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])