diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-01 15:10:07 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-01 15:10:07 +0100 |
commit | 49f7a7f57470e5b941073a0cccf50425279600d1 (patch) | |
tree | 697f24d4c0c23107e72bc95a8106e57fd81c6c76 /tools.h | |
parent | 6f76e100383189eb9fd2b861fe2cdba2d94b7c59 (diff) | |
download | vdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.gz vdr-49f7a7f57470e5b941073a0cccf50425279600d1.tar.bz2 |
Fixed cVector::Clear() and cStringList::Clear()
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |