Clearing a hash makes its length 0.
authorMartin Jones <martin.jones@nokia.com>
Mon, 18 Jul 2011 04:28:10 +0000 (14:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 30 Aug 2011 11:18:28 +0000 (13:18 +0200)
Change-Id: Ie5b1251212b504d7a7621abdd7fe4e9305790846
Reviewed-on: http://codereview.qt.nokia.com/3752
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/qml/ftw/qhashedstring_p.h

index 041ad02..1633855 100644 (file)
@@ -409,6 +409,7 @@ void QStringHash<T,SmallThreshold>::clear()
     data.buckets = 0;
     data.numBuckets = 0;
     data.numBits = 0;
+    data.size = 0;
 
     nodePool = 0;
 }