diff options
author | Frank Neumann <fnu@yavdr.org> | 2017-05-12 15:18:58 +0200 |
---|---|---|
committer | Frank Neumann <fnu@yavdr.org> | 2017-05-12 15:18:58 +0200 |
commit | 1b9fb08a555d89a3b9ec9739f2b17563afb43572 (patch) | |
tree | d01be17d0bd17336f74c92fdef94212ed33a6121 /switchtimer.c | |
parent | 8ede45905dde9f4109f3d4f0d2e8cedc7beee01c (diff) | |
download | vdr-plugin-epgsearch-1b9fb08a555d89a3b9ec9739f2b17563afb43572.tar.gz vdr-plugin-epgsearch-1b9fb08a555d89a3b9ec9739f2b17563afb43572.tar.bz2 |
0002-removed-variableduplications.diff (thx TomJoad@vdr-portal.de)
Diffstat (limited to 'switchtimer.c')
-rw-r--r-- | switchtimer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/switchtimer.c b/switchtimer.c index 7df4352..af0c721 100644 --- a/switchtimer.c +++ b/switchtimer.c @@ -115,9 +115,8 @@ const cEvent* cSwitchTimer::Event() if (startTime > now) { LOCK_SCHEDULES_READ; - const cSchedules *schedules = Schedules; - if (!schedules) return NULL; - const cSchedule *Schedule = schedules->GetSchedule(channelID); + if (!Schedules) return NULL; + const cSchedule *Schedule = Schedules->GetSchedule(channelID); if (Schedule) { event = Schedule->GetEvent(eventID, startTime); @@ -137,8 +136,7 @@ cString cSwitchTimer::ToText(bool& ignore) return NULL; } LOCK_CHANNELS_READ; - const cChannels *vdrchannels = Channels; - const cChannel *channel = vdrchannels->GetByChannelID(channelID, true, true); + const cChannel *channel = Channels->GetByChannelID(channelID, true, true); if (!channel) return NULL; cString buffer = cString::sprintf("%s:%u:%ld:%d:%d:%d", CHANNELSTRING(channel), eventID, |