diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
commit | eff341390c079060d0904a53b7eebe84e2315f3a (patch) | |
tree | d45d902e7a7022a95a3e9c58346d88c45e0da517 /menu_deftimercheckmethod.c | |
parent | be2c5ff1bfdff45d384981816ef692f0179a7f15 (diff) | |
download | vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.gz vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.bz2 |
Delete trailing whitespace, thanks to Ville Skyttä for patches
Diffstat (limited to 'menu_deftimercheckmethod.c')
-rw-r--r-- | menu_deftimercheckmethod.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/menu_deftimercheckmethod.c b/menu_deftimercheckmethod.c index deee8b7..f587aea 100644 --- a/menu_deftimercheckmethod.c +++ b/menu_deftimercheckmethod.c @@ -39,11 +39,11 @@ bool cDefTimerCheckMode::Parse(const char *s) char *pos_next; int parameter = 1; int valuelen; - + #define MAXVALUELEN (10 * MaxFileName) - + char value[MAXVALUELEN]; - + pos = line = strdup(s); pos_next = pos + strlen(pos); if (*pos_next == '\n') *pos_next = 0; @@ -55,9 +55,9 @@ bool cDefTimerCheckMode::Parse(const char *s) if (!pos_next) pos_next = pos + strlen(pos); valuelen = pos_next - pos + 1; - if (valuelen > MAXVALUELEN) + if (valuelen > MAXVALUELEN) { - LogFile.eSysLog("entry '%s' is too long. Will be truncated!", pos); + LogFile.eSysLog("entry '%s' is too long. Will be truncated!", pos); valuelen = MAXVALUELEN; } strn0cpy(value, pos, valuelen); @@ -75,7 +75,7 @@ bool cDefTimerCheckMode::Parse(const char *s) } if (*pos) pos++; } //while - + free(line); return (parameter >= 2) ? true : false; } @@ -137,13 +137,13 @@ void cMenuDefTimerCheckMethod::Set() { int current = Current(); Clear(); - + delete modes; - modes = new int[Channels.Count()]; + modes = new int[Channels.Count()]; int i=0; - for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel), i++) + for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel), i++) { - if (!channel->GroupSep() && *channel->Name()) + if (!channel->GroupSep() && *channel->Name()) { modes[i] = DefTimerCheckModes.GetMode(channel); Add(new cMenuEditStraItem(channel->Name(), &modes[i], 3, CheckModes)); @@ -161,8 +161,8 @@ eOSState cMenuDefTimerCheckMethod::ProcessKey(eKeys Key) case kOk: { int i=0; - for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel), i++) - if (!channel->GroupSep() && *channel->Name()) + for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel), i++) + if (!channel->GroupSep() && *channel->Name()) DefTimerCheckModes.SetMode(channel, modes[i]); DefTimerCheckModes.Save(); return osBack; @@ -173,7 +173,7 @@ eOSState cMenuDefTimerCheckMethod::ProcessKey(eKeys Key) return state; } - + |