From bbfd6917a2df29845118d3b514f58722a22b2eca Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Nov 2007 16:47:49 +0000 Subject: Fixed a bug in Bu::Hash::clear(), it wasn't actually changing the number of deleted items, so the size was being misreported immediately after a clear. --- src/hash.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/hash.h') diff --git a/src/hash.h b/src/hash.h index 1b53001..5cf54c2 100644 --- a/src/hash.h +++ b/src/hash.h @@ -409,8 +409,7 @@ namespace Bu if( isFilled( j ) ) if( !isDeleted( j ) ) { - va.destroy( &aValues[j] ); - ka.destroy( &aKeys[j] ); + _erase( j ); onDelete(); } } -- cgit v1.2.3