From 62a97799a4d3220699956d81a3328954e14cf6a1 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Mon, 18 Jul 2011 14:28:10 +1000 Subject: [PATCH] Clearing a hash makes its length 0. Change-Id: Ie5b1251212b504d7a7621abdd7fe4e9305790846 Reviewed-on: http://codereview.qt.nokia.com/3752 Reviewed-by: Roberto Raggi Reviewed-by: Qt Sanity Bot --- src/declarative/qml/ftw/qhashedstring_p.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/declarative/qml/ftw/qhashedstring_p.h b/src/declarative/qml/ftw/qhashedstring_p.h index 041ad02..1633855 100644 --- a/src/declarative/qml/ftw/qhashedstring_p.h +++ b/src/declarative/qml/ftw/qhashedstring_p.h @@ -409,6 +409,7 @@ void QStringHash::clear() data.buckets = 0; data.numBuckets = 0; data.numBits = 0; + data.size = 0; nodePool = 0; } -- 1.7.2.5