agendainterface/agendautil/src/agendautil_p.cpp
changeset 37 360d55486d7f
parent 32 ea672fcb0ea0
child 49 5de72ea7a065
equal deleted inserted replaced
32:ea672fcb0ea0 37:360d55486d7f
  1715             } else {
  1715             } else {
  1716                 dates.append(startDate);
  1716                 dates.append(startDate);
  1717             }
  1717             }
  1718         }
  1718         }
  1719     }
  1719     }
       
  1720 	int count = instanceList.Count();
       
  1721 	for (int i = count - 1; i >= 0; --i) {
       
  1722 	            CCalInstance *instance = instanceList[i];
       
  1723 	            delete instance;
       
  1724 	        }
  1720     CleanupStack::PopAndDestroy();
  1725     CleanupStack::PopAndDestroy();
  1721 }
  1726 }
  1722 
  1727 
  1723 QList<AgendaEntry> AgendaUtilPrivate::createEntryIdListForDay( QDateTime day,
  1728 QList<AgendaEntry> AgendaUtilPrivate::createEntryIdListForDay( QDateTime day,
  1724                             AgendaUtil::FilterFlags filter )
  1729                             AgendaUtil::FilterFlags filter )
  2468 	if (instanceList.Count()) {
  2473 	if (instanceList.Count()) {
  2469 		isEmpty = false;
  2474 		isEmpty = false;
  2470 	} else {
  2475 	} else {
  2471 		isEmpty = true;
  2476 		isEmpty = true;
  2472 	}
  2477 	}
       
  2478 	int count = instanceList.Count();
       
  2479 	for (int i = count - 1; i >= 0; --i) {
       
  2480 	            CCalInstance *instance = instanceList[i];
       
  2481 	            delete instance;
       
  2482 	        }
  2473 	CleanupStack::PopAndDestroy();
  2483 	CleanupStack::PopAndDestroy();
  2474 	return isEmpty;
  2484 	return isEmpty;
  2475 }
  2485 }
  2476 
  2486 
  2477 /*!
  2487 /*!