diff options
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r-- | src/corelib/tools/qhash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index cdf5577fcb..09d7ade20f 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -491,6 +491,14 @@ struct Data } + void clear() + { + delete [] spans; + spans = nullptr; + size = 0; + numBuckets = 0; + } + iterator detachedIterator(iterator other) const noexcept { return iterator{this, other.bucket}; |