diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-03-14 13:27:57 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-03-14 13:27:57 +0100 |
commit | 07dc53331e62b29cc7659a23de4d7348f4788bd7 (patch) | |
tree | fec0a02cb25213ba171ea5646db88891fa1b1ea8 /menu.c | |
parent | 510a205c31f6e39171e85e2704cca8e9404c99bf (diff) | |
download | vdr-07dc53331e62b29cc7659a23de4d7348f4788bd7.tar.gz vdr-07dc53331e62b29cc7659a23de4d7348f4788bd7.tar.bz2 |
Removed cSchedule::GetEventNumber() and cSchedule::NumEvents()
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.296 2004/03/14 10:31:13 kls Exp $ + * $Id: menu.c 1.297 2004/03/14 13:24:02 kls Exp $ */ #include "menu.h" @@ -1380,10 +1380,8 @@ void cMenuSchedule::PrepareSchedule(cChannel *Channel) const cSchedule *Schedule = schedules->GetSchedule(Channel->GetChannelID()); if (Schedule) { const cEvent *PresentEvent = Schedule->GetPresentEvent(Channel->Number() == cDevice::CurrentChannel()); - int num = Schedule->NumEvents(); time_t now = time(NULL) - Setup.EPGLinger * 60; - for (int a = 0; a < num; a++) { - const cEvent *Event = Schedule->GetEventNumber(a); + for (const cEvent *Event = Schedule->Events()->First(); Event; Event = Schedule->Events()->Next(Event)) { if (Event->EndTime() > now || Event == PresentEvent) Add(new cMenuScheduleItem(Event), Event == PresentEvent); } |