summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.h
diff options
context:
space:
mode:
authorThorbjørn Martsum <tmartsum@gmail.com>2013-05-03 06:45:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-12 16:15:44 +0200
commit012d3750e79ebe4ceaffc0aa2a6bcccd02d47614 (patch)
treecd24a59a168f614ec84323edc261f38fe121b0ee /src/corelib/tools/qhash.h
parent1c0a924a2e520b5ff36a6d9eba6aca8fa57e2eab (diff)
QSet - check if iterator argument is valid (in debugmode)
This adds a check on erase that the iterator is from the set. Change-Id: I9f4e127d53a5b1f5f8c70652604f1f5574c73688 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r--src/corelib/tools/qhash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h
index 0124b787db..25029afe1f 100644
--- a/src/corelib/tools/qhash.h
+++ b/src/corelib/tools/qhash.h
@@ -527,6 +527,7 @@ private:
return true;
#endif
}
+ friend class QSet<Key>;
};