summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-01 15:10:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-01 15:10:07 +0100
commit49f7a7f57470e5b941073a0cccf50425279600d1 (patch)
tree697f24d4c0c23107e72bc95a8106e57fd81c6c76 /tools.h
parent6f76e100383189eb9fd2b861fe2cdba2d94b7c59 (diff)
downloadvdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.gz
vdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.bz2
Fixed cVector::Clear() and cStringList::Clear()
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools.h b/tools.h
index 28dbd5ea..1239176d 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.108 2007/08/25 14:16:39 kls Exp $
+ * $Id: tools.h 1.109 2008/01/01 15:09:25 kls Exp $
*/
#ifndef __TOOLS_H
@@ -470,7 +470,10 @@ public:
memmove(&data[Index], &data[Index + 1], (size - Index) * sizeof(T));
size--;
}
- virtual void Clear(void) {}
+ virtual void Clear(void)
+ {
+ size = 0;
+ }
void Sort(__compar_fn_t Compare)
{
qsort(data, size, sizeof(T), Compare);