QVLA: fix assert message in erase()
Likely a c&p error from insert(). Change-Id: I9fd4ce19d3350a5c7e66e8eb2b0e8b80997c2a56 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9fc4f26c86
commit
d366d468ff
@ -956,8 +956,8 @@ Q_OUTOFLINE_TEMPLATE auto QVLABase<T>::insert_impl(qsizetype prealloc, void *arr
|
||||
template <class T>
|
||||
Q_OUTOFLINE_TEMPLATE auto QVLABase<T>::erase(const_iterator abegin, const_iterator aend) -> iterator
|
||||
{
|
||||
Q_ASSERT_X(isValidIterator(abegin), "QVarLengthArray::insert", "The specified const_iterator argument 'abegin' is invalid");
|
||||
Q_ASSERT_X(isValidIterator(aend), "QVarLengthArray::insert", "The specified const_iterator argument 'aend' is invalid");
|
||||
Q_ASSERT_X(isValidIterator(abegin), "QVarLengthArray::erase", "The specified const_iterator argument 'abegin' is invalid");
|
||||
Q_ASSERT_X(isValidIterator(aend), "QVarLengthArray::erase", "The specified const_iterator argument 'aend' is invalid");
|
||||
|
||||
qsizetype f = qsizetype(abegin - cbegin());
|
||||
qsizetype l = qsizetype(aend - cbegin());
|
||||
|
Loading…
x
Reference in New Issue
Block a user