summaryrefslogtreecommitdiff
path: root/channelgroups.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-08 13:30:41 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:30:01 +0100
commitbf2937d86c316edb716c6fe1bdb97e7c706f675c (patch)
treefa8878241e876ee18fe417de51fc26cea1f76f6a /channelgroups.c
parent6ae27238afa33e17dece7311c4728b5c1f2f83b2 (diff)
downloadvdr-plugin-tvguide-bf2937d86c316edb716c6fe1bdb97e7c706f675c.tar.gz
vdr-plugin-tvguide-bf2937d86c316edb716c6fe1bdb97e7c706f675c.tar.bz2
Cosmetic changes / SwitchTimer& operator / std:min,std:max
Diffstat (limited to 'channelgroups.c')
-rw-r--r--channelgroups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channelgroups.c b/channelgroups.c
index 7046679..793b75e 100644
--- a/channelgroups.c
+++ b/channelgroups.c
@@ -10,7 +10,7 @@ cChannelGroups::~cChannelGroups(void) {
void cChannelGroups::ReadChannelGroups(void) {
bool setStart = false;
int lastChannelNumber = 0;
-#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+#if VDRVERSNUM >= 20301
LOCK_CHANNELS_READ;
const cChannel *first = Channels->First();
#else
@@ -20,7 +20,7 @@ void cChannelGroups::ReadChannelGroups(void) {
channelGroups.push_back(cChannelGroup(tr("Main Program")));
setStart = true;
}
-#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+#if VDRVERSNUM >= 20301
for (const cChannel *channel = Channels->First(); channel; channel = Channels->Next(channel)) {
#else
for (const cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) {
@@ -112,7 +112,7 @@ void cChannelGroups::DrawChannelGroups(const cChannel *start, const cChannel *st
int groupLast = group;
int line = 0;
int lineStart = 0;
-#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+#if VDRVERSNUM >= 20301
LOCK_CHANNELS_READ;
for (const cChannel *channel = Channels->Next(start); channel; channel = Channels->Next(channel)) {
#else