diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-11-14 16:47:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-11-14 16:47:49 +0000 |
commit | bbfd6917a2df29845118d3b514f58722a22b2eca (patch) | |
tree | 239617982d769da249cb6b93abb44121bfe893a4 | |
parent | c38c6ebe9778244e17544de9067ff35f4ed43906 (diff) | |
download | libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.gz libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.bz2 libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.xz libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/hash.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -409,8 +409,7 @@ namespace Bu | |||
409 | if( isFilled( j ) ) | 409 | if( isFilled( j ) ) |
410 | if( !isDeleted( j ) ) | 410 | if( !isDeleted( j ) ) |
411 | { | 411 | { |
412 | va.destroy( &aValues[j] ); | 412 | _erase( j ); |
413 | ka.destroy( &aKeys[j] ); | ||
414 | onDelete(); | 413 | onDelete(); |
415 | } | 414 | } |
416 | } | 415 | } |