diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-26 09:58:10 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-26 09:58:10 +0200 |
commit | a80915ff22ec0103fb95212b0048aa73007f87eb (patch) | |
tree | 0ba0885a3deae6239f4b67ee066c8319f4856c13 /tools.h | |
parent | 6a737033ad4a4b732198a99c5f227f10278b32b6 (diff) | |
download | vdr-a80915ff22ec0103fb95212b0048aa73007f87eb.tar.gz vdr-a80915ff22ec0103fb95212b0048aa73007f87eb.tar.bz2 |
There can now be more than one OSD at the same time
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 8 |
1 files changed, 7 insertions, 1 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.107 2007/08/05 12:11:52 kls Exp $ + * $Id: tools.h 1.108 2007/08/25 14:16:39 kls Exp $ */ #ifndef __TOOLS_H @@ -464,6 +464,12 @@ public: Realloc(allocated * 4 / 2); // increase size by 50% data[size++] = Data; } + virtual void Remove(int Index) + { + if (Index < size - 1) + memmove(&data[Index], &data[Index + 1], (size - Index) * sizeof(T)); + size--; + } virtual void Clear(void) {} void Sort(__compar_fn_t Compare) { |