summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-04-13 13:05:24 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-04-14 14:15:59 +0200
commit310c5d8c55d730cb7751b98d24ba5246ea6c5acf (patch)
tree0c59d8b76264ecea48749f19617a93b59e475616
parenta77cd07b24f1e592828bd46dce0f314600c34557 (diff)
Remove size assert in QMultiHash::take()
It doesn't exist in every instantiation of the template; this becomes evident when attempting to build QQuickListView: error: 'using Chain = struct QHashPrivate::MultiNodeChain<FxViewItem*>' {aka 'struct QHashPrivate::MultiNodeChain<FxViewItem*>'} has no member named 'size' Change-Id: I24748c15f3995083eec06d86a3c0dced2209c303 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r--src/corelib/tools/qhash.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h
index be2f1537fe..3bbf8a5a48 100644
--- a/src/corelib/tools/qhash.h
+++ b/src/corelib/tools/qhash.h
@@ -1318,7 +1318,6 @@ public:
auto it = d->find(key);
if (it.isUnused())
return T();
- Q_ASSERT(it.node()->value.size());
Chain *e = it.node()->value;
Q_ASSERT(e);
if (!e->next)