summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qvector.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-02-12 09:53:11 +0100
committerLars Knoll <lars.knoll@qt.io>2019-02-13 11:09:55 +0000
commit56a8c277546fba6ad45711e95db26c74178ef512 (patch)
tree81325c3f3998af3ca2c8e290e3836330d970f18d /src/corelib/tools/qvector.h
parent7d2d1eb9e051ad01dc5c5c3053c58364885bdc07 (diff)
Remove bogus assert
The code was actually completely fine, but the assert was bogus. detach() can call realloc(d->alloc). Fixes: QTBUG-73756 Change-Id: I3485bc926dba3f2537e14c0c05d30ff982e6e714 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qvector.h')
-rw-r--r--src/corelib/tools/qvector.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h
index b51cd819c5..988d5a9e1b 100644
--- a/src/corelib/tools/qvector.h
+++ b/src/corelib/tools/qvector.h
@@ -672,7 +672,6 @@ void QVector<T>::realloc(int aalloc, QArrayData::AllocationOptions options)
Data *x = d;
const bool isShared = d->ref.isShared();
- Q_ASSERT(aalloc != int(d->alloc) || isShared);
QT_TRY {
// allocate memory