--- a/pimappservices/calendar/server/src/agsextractor.cpp Tue Oct 05 14:14:48 2010 +0530
+++ b/pimappservices/calendar/server/src/agsextractor.cpp Fri Oct 15 12:10:36 2010 +0530
@@ -103,8 +103,6 @@
TTime searchRangeStartLocal(aSearchParams.iRangeStart.LocalL());
TTime searchRangeEndLocal(aSearchParams.iRangeEnd.LocalL());
- TTime startTime(searchRangeStartLocal);
-
#ifdef SYMBIAN_SKIPPED_CALENDAR_ALARMS
TBool alarmInstanceSearch(EFalse);
alarmInstanceSearch = aSearchParams.iFilter.IsAlarmedInstanceSearch();
@@ -172,7 +170,9 @@
}
}
-#else
+#else
+ TTime startTime(searchRangeStartLocal);
+
for (iIterator->GotoL(startTime); !iIterator->AtEnd() && ( (iIterator->CurrentElement().ValidFromTimeLocalL() == Time::NullTTime()) || iIterator->CurrentElement().ValidFromTimeLocalL() <= searchRangeEndLocal) ; iIterator->NextL())
{
const CAgnSimpleEntry& KSimpleEntry(iIterator->CurrentElement());