BlockArray::MakeEmpty() can now also be called before the block has been actually used.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Utility - some helper classes
|
||||
**
|
||||
** Initial version by Axel Dörfler, [email protected]
|
||||
** This file may be used under the terms of the OpenBeOS License.
|
||||
*
|
||||
* Copyright 2001-2005, Axel Dörfler, [email protected].
|
||||
* This file may be used under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -85,7 +85,6 @@ BlockArray::BlockArray(int32 blockSize)
|
||||
|
||||
BlockArray::~BlockArray()
|
||||
{
|
||||
if (fArray)
|
||||
free(fArray);
|
||||
}
|
||||
|
||||
@@ -134,6 +133,7 @@ BlockArray::Remove(off_t value)
|
||||
void
|
||||
BlockArray::MakeEmpty()
|
||||
{
|
||||
if (fArray != NULL)
|
||||
fArray->count = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user