mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
cVector::Clear() now reinitializes any previously used members
This commit is contained in:
parent
cdaf99121b
commit
d2030debc0
1
HISTORY
1
HISTORY
@ -7114,3 +7114,4 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed checking for UTF-8 support in cFont::Bidi() (reported by Torsten Lang).
|
- Fixed checking for UTF-8 support in cFont::Bidi() (reported by Torsten Lang).
|
||||||
- If a recording has no info file, the 'title' of the recording's info is now set
|
- If a recording has no info file, the 'title' of the recording's info is now set
|
||||||
to the recording's name.
|
to the recording's name.
|
||||||
|
- cVector::Clear() now reinitializes any previously used members.
|
||||||
|
4
tools.h
4
tools.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: tools.h 2.20 2012/05/19 12:32:32 kls Exp $
|
* $Id: tools.h 2.21 2012/05/20 13:58:06 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TOOLS_H
|
#ifndef __TOOLS_H
|
||||||
@ -540,6 +540,8 @@ public:
|
|||||||
}
|
}
|
||||||
virtual void Clear(void)
|
virtual void Clear(void)
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < size; i++)
|
||||||
|
data[i] = T(0);
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
void Sort(__compar_fn_t Compare)
|
void Sort(__compar_fn_t Compare)
|
||||||
|
Loading…
Reference in New Issue
Block a user