summaryrefslogtreecommitdiff
path: root/recmenuitem.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-06 18:34:31 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-07 12:57:14 +0200
commit52d887d854c85d1b2b4cb1626020bb85b1042ffd (patch)
treeb45502989d58f622103caa5c754b4487d5f65652 /recmenuitem.c
parent6f7042d41f74f6ffc443f04cfffda0440b429da4 (diff)
downloadvdr-plugin-tvguide-52d887d854c85d1b2b4cb1626020bb85b1042ffd.tar.gz
vdr-plugin-tvguide-52d887d854c85d1b2b4cb1626020bb85b1042ffd.tar.bz2
Some changes for VDR < 2.3.0
Diffstat (limited to 'recmenuitem.c')
-rw-r--r--recmenuitem.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/recmenuitem.c b/recmenuitem.c
index 14381b4..08c3417 100644
--- a/recmenuitem.c
+++ b/recmenuitem.c
@@ -1919,11 +1919,7 @@ eRecMenuState cRecMenuItemEvent::ProcessKey(eKeys Key) {
// --- cRecMenuItemChannelChooser -------------------------------------------------------
cRecMenuItemChannelChooser::cRecMenuItemChannelChooser(cString text,
-#if VDRVERSNUM >= 20301
const cChannel *initialChannel,
-#else
- cChannel *initialChannel,
-#endif
bool active,
int *callback,
eRecMenuState action) {
@@ -2013,8 +2009,8 @@ eRecMenuState cRecMenuItemChannelChooser::ProcessKey(eKeys Key) {
LOCK_CHANNELS_READ;
const cChannel *firstChannel = Channels->First();
#else
- cChannel *prev = channel;
- cChannel *firstChannel = Channels.First();
+ const cChannel *prev = channel;
+ const cChannel *firstChannel = Channels.First();
#endif
if(firstChannel->GroupSep())
#if VDRVERSNUM >= 20301
@@ -2068,7 +2064,7 @@ eRecMenuState cRecMenuItemChannelChooser::ProcessKey(eKeys Key) {
const cChannel *next = channel;
while (next = Channels->Next(next)) {
#else
- cChannel *next = channel;
+ const cChannel *next = channel;
while (next = Channels.Next(next)) {
#endif
if(!next->GroupSep()) {
@@ -2096,7 +2092,7 @@ eRecMenuState cRecMenuItemChannelChooser::ProcessKey(eKeys Key) {
LOCK_CHANNELS_READ;
const cChannel *chanNew = Channels->GetByNumber(channelNumber);
#else
- cChannel *chanNew = Channels.GetByNumber(channelNumber);
+ const cChannel *chanNew = Channels.GetByNumber(channelNumber);
#endif
if (chanNew) {
channel = chanNew;
@@ -2291,7 +2287,7 @@ void cRecMenuItemRecording::Draw(void) {
LOCK_CHANNELS_READ;
const cChannel *channel = Channels->GetByChannelID(recInfo->ChannelID());
#else
- cChannel *channel = Channels.GetByChannelID(recInfo->ChannelID());
+ const cChannel *channel = Channels.GetByChannelID(recInfo->ChannelID());
#endif
cString channelName = tr("unknown channel");
if (channel)