(svn r14669) -Codechange: use SmallVector instead of std::list at one place

This commit is contained in:
smatz
2008-12-13 15:59:25 +00:00
parent f98e498771
commit ae6107535a
2 changed files with 19 additions and 8 deletions

View File

@@ -44,6 +44,17 @@ public:
this->items = 0;
}
/**
* Remove all items from the list and free allocated memory.
*/
void Reset()
{
this->items = 0;
this->capacity = 0;
free(data);
data = NULL;
}
/**
* Compact the list down to the smallest block size boundary.
*/