diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-06-02 19:13:11 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-06-02 19:13:11 +0200 |
commit | 0a2aad0200af8d7fd43e72600eaeea043fb1d37a (patch) | |
tree | 83e6f125eee35d741f93d5a533aec115a9a81594 /util.c | |
parent | 1e5c78ae3b461343f87d49210116c20d5203ca7a (diff) | |
download | vdr-plugin-eepg-0a2aad0200af8d7fd43e72600eaeea043fb1d37a.tar.gz vdr-plugin-eepg-0a2aad0200af8d7fd43e72600eaeea043fb1d37a.tar.bz2 |
fix compile but crashes
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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(); |