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>bb10
parent
7d2d1eb9e0
commit
56a8c27754
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue