summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-11 08:42:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-11 08:42:30 +0200
commit0fac78954c1d1afeaa772baa4daa0a6e52e1e0a2 (patch)
tree9f1332542a56d936e9789f40840633eb31ac0149 /tools.h
parent8162e30e1b980040d8b638762349fa41025dd93e (diff)
downloadvdr-0fac78954c1d1afeaa772baa4daa0a6e52e1e0a2.tar.gz
vdr-0fac78954c1d1afeaa772baa4daa0a6e52e1e0a2.tar.bz2
Avoiding ambiguities in the cList template class in case one defines a 'list of lists'
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools.h b/tools.h
index 08a56723..bf064ce7 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.42 2002/02/17 12:57:44 kls Exp $
+ * $Id: tools.h 1.43 2002/05/11 08:35:47 kls Exp $
*/
#ifndef __TOOLS_H
@@ -147,8 +147,8 @@ public:
T *Get(int Index) const { return (T *)cListBase::Get(Index); }
T *First(void) const { return (T *)objects; }
T *Last(void) const { return (T *)lastObject; }
- T *Prev(const T *object) const { return (T *)object->Prev(); }
- T *Next(const T *object) const { return (T *)object->Next(); }
+ T *Prev(const T *object) const { return (T *)object->cListObject::Prev(); } // need to call cListObject's members to
+ T *Next(const T *object) const { return (T *)object->cListObject::Next(); } // avoid ambiguities in case of a "list of lists"
};
#endif //__TOOLS_H