summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-06-03 22:24:39 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2012-06-03 22:24:39 +0200
commite456d4cb075717b8544a198a8f303dff43ea53ec (patch)
treef8b243e69884eae095bfa043c47d425437fe1ffc
parentf99c11b6335c28204d0e3dbf8ebfd287279d2939 (diff)
parent0a2aad0200af8d7fd43e72600eaeea043fb1d37a (diff)
downloadvdr-plugin-eepg-e456d4cb075717b8544a198a8f303dff43ea53ec.tar.gz
vdr-plugin-eepg-e456d4cb075717b8544a198a8f303dff43ea53ec.tar.bz2
Merge branch 'equivalents' of ssh://192.168.1.137/home/dime/VDR/PLUGINS/src/eepg into equivalents
-rw-r--r--util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util.c b/util.c
index 08514bf..a508525 100644
--- a/util.c
+++ b/util.c
@@ -143,9 +143,9 @@ void CleanString (unsigned char *String)
struct tChannelIDCompare
{
- bool operator() (const tChannelID& lhs, const tChannelID& rhs)
+ bool operator() (const tChannelID& lhs, const tChannelID& rhs) const
{
- return lhs.ToString() < rhs.ToString();
+ return *lhs.ToString() < *rhs.ToString();
}
};
@@ -169,14 +169,14 @@ cAddEventThread::cAddEventThread(void)
:cThread("cAddEventThread"), LastHandleEvent()
{
// list = new cList<cAddEventListItem>;
- map_list = new std::map<tChannelID,cList<cEvent *>*>;
+ map_list = new std::map<tChannelID,cList<cEvent *>*,tChannelIDCompare>;
}
cAddEventThread::~cAddEventThread(void)
{
LOCK_THREAD;
// list->cList::Clear();
- std::map<tChannelID,cList<cEvent *>*>::iterator it;
+ std::map<tChannelID,cList<cEvent *>*,tChannelIDCompare>::iterator it;
for ( it=map_list->begin() ; it != map_list->end(); it++ )
(*it).second->cList::Clear();
Cancel(3);
@@ -197,7 +197,7 @@ void cAddEventThread::Action(void)
// EpgHandlers.DropOutdated(schedule, e->GetEvent()->StartTime(), e->GetEvent()->EndTime(), e->GetEvent()->TableID(), e->GetEvent()->Version());
// list->Del(e);
// }
- std::map<tChannelID,cList<cEvent *>*>::iterator it;
+ std::map<tChannelID,cList<cEvent *>*,tChannelIDCompare>::iterator it;
if (schedules) {
for ( it=map_list->begin() ; it != map_list->end(); it++ ) {
(*it).second->cList::Clear();