pimappservices/calendar/server/src/agsextractor.cpp
changeset 83 5aadd1120515
parent 0 f979ecb2b13e
child 89 b57382753122
--- 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());