summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-26 11:41:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-26 11:41:33 +0200
commit1855ab0ef3ff5ef220cbd3bc486b0c4d66063073 (patch)
tree0a651fb83e19f63f5acc96ba50b477e4b0f7b0ed /tools.h
parent373c69043ae352778974735460753d5e4f500789 (diff)
downloadvdr-1855ab0ef3ff5ef220cbd3bc486b0c4d66063073.tar.gz
vdr-1855ab0ef3ff5ef220cbd3bc486b0c4d66063073.tar.bz2
Introduced cListBase::count for better performance
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools.h b/tools.h
index 31a88d45..a45facbf 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.69 2005/05/16 09:55:19 kls Exp $
+ * $Id: tools.h 1.70 2005/05/26 11:34:01 kls Exp $
*/
#ifndef __TOOLS_H
@@ -213,6 +213,7 @@ class cListBase {
protected:
cListObject *objects, *lastObject;
cListBase(void);
+ int count;
public:
virtual ~cListBase();
void Add(cListObject *Object, cListObject *After = NULL);
@@ -222,7 +223,7 @@ public:
void Move(cListObject *From, cListObject *To);
virtual void Clear(void);
cListObject *Get(int Index) const;
- int Count(void) const;
+ int Count(void) const { return count; }
void Sort(void);
};