From f653594c4a82eef62ec16d9daab2f964f416a12e Mon Sep 17 00:00:00 2001 From: kamel5 Date: Wed, 4 Mar 2020 15:25:44 +0100 Subject: Fixes for = 20301 LOCK_TIMERS_READ; const cTimers* timers = Timers; -#else - const cTimers* timers = &Timers; -#endif cSortedTimers SortedTimers(timers); int i = 0; while (i < SortedTimers.Size()) { @@ -1448,6 +1445,13 @@ void cRecMenuTimeline::GetTimersForDay(void) { } i++; } +#else + for (const cTimer *t = Timers.First(); t; t = Timers.Next(t)) { + if (((t->StartTime() > timeStart) && (t->StartTime() <= timeStop)) || ((t->StopTime() > timeStart) && (t->StopTime() <= timeStop))) { + timersToday.push_back(t); + } + } +#endif numTimersToday = timersToday.size(); } -- cgit v1.2.3