From 0b62aff0e3385ed0c11fda145c2a5167bbc1c56d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 1 Nov 2004 10:40:38 +0100 Subject: Now using qsort() to sort cListBase lists --- menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index f15144e9..5ebf5183 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.317 2004/10/31 12:53:00 kls Exp $ + * $Id: menu.c 1.318 2004/11/01 10:40:38 kls Exp $ */ #include "menu.h" @@ -667,7 +667,7 @@ private: cTimer *timer; public: cMenuTimerItem(cTimer *Timer); - virtual bool operator< (const cListObject &ListObject); + virtual int Compare(const cListObject &ListObject) const; virtual void Set(void); cTimer *Timer(void) { return timer; } }; @@ -678,9 +678,9 @@ cMenuTimerItem::cMenuTimerItem(cTimer *Timer) Set(); } -bool cMenuTimerItem::operator< (const cListObject &ListObject) +int cMenuTimerItem::Compare(const cListObject &ListObject) const { - return *timer < *((cMenuTimerItem *)&ListObject)->timer; + return timer->Compare(*((cMenuTimerItem *)&ListObject)->timer); } void cMenuTimerItem::Set(void) -- cgit v1.2.3