summaryrefslogtreecommitdiff
path: root/epghandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'epghandler.c')
-rw-r--r--epghandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epghandler.c b/epghandler.c
index a80600c..1e2db9f 100644
--- a/epghandler.c
+++ b/epghandler.c
@@ -108,7 +108,7 @@ void cEEpgHandler::FindDuplicate(cEvent* Event, const char* newTitle)
{
if (!newTitle || !searchDuplicates) return;
- for (cEvent *ev = schedule->Events()->First(); ev; ev = schedule->Events()->Next(ev)) {
+ for (const cEvent *ev = schedule->Events()->First(); ev; ev = schedule->Events()->Next(ev)) {
//assume that events are already sorted.
if (ev->StartTime() > Event->EndTime()) break;
if (ev->Title() && strcasecmp(ev->Title(), newTitle) == 0
@@ -117,7 +117,7 @@ void cEEpgHandler::FindDuplicate(cEvent* Event, const char* newTitle)
LogD(0, prep("!!!Deleting Event id o:%d n:%d; title o:%s n:%s; start_time o:%d n:%d; duration o:%d n:%d"),
ev->EventID(), Event->EventID(), ev->Title(), newTitle, ev->StartTime(), Event->StartTime(), ev->Duration(), Event->Duration());
- RemoveEvent(ev);
+ RemoveEvent((cEvent*)ev);
break;
}
}