qt5base-lts/tests/auto/corelib/tools
Andreas Hartmetz bdc115d969 detach() safely in QVector::erase(), and update callers to not detach.
remove() can use non-detaching iterators internally before calling
erase(), which hasn't been exploited so far, so that the detach() in
erase() never actually detached. When using erase() from outside,
you can't do it legally without calling begin() or end() that detach()
before erase() is called.
Now remove() doesn't detach anymore, and detaching in erase() works.
With new tests that fail after changing only the erase() callers
and pass again after fixing erase().

Change-Id: I47c0a9e362dce8628ec566f5437d951755de96c8
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2012-10-19 18:04:11 +02:00
..
qalgorithms Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qarraydata Test: remove QSKIP in tst_qarraydata 2012-10-18 14:55:23 +02:00
qbitarray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qbytearray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qbytearraymatcher Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qcache Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qchar Update the Unicode Data and Algorithms up to Unicode 6.2 2012-10-09 03:04:41 +02:00
qcontiguouscache Make QContiguousCache with zero capacity not crash 2012-10-19 07:50:29 +02:00
qcryptographichash Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdate Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdatetime Test: remove QSKIP from tst_QDateTime::fromString_LOCALE_ILDATE 2012-10-19 02:44:52 +02:00
qeasingcurve Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qelapsedtimer Remove #if 0 usage in QElapsedTimer autotest. 2012-10-04 03:03:35 +02:00
qexplicitlyshareddatapointer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfreelist Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qhash Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qline Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlist Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlocale Test: remove QSKIP in tst_QLocale::emptyCtor 2012-10-19 09:41:36 +02:00
qmap Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmargins Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpair Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpoint Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpointf Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qqueue Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qrect Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qregexp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qregularexpression Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qringbuffer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qscopedpointer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qscopedvaluerollback Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qset Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsharedpointer Test: remove QSKIP in tst_QSharedPointer::lambdaCustomDeleter 2012-10-16 20:43:37 +02:00
qsize Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsizef Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstring Fix for integer overflow in QString::replace 2012-10-03 17:30:30 +02:00
qstring_no_cast_from_bytearray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringbuilder Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringlist Test: remove QSKIP from tst_QStringList::initializeList() 2012-10-19 09:41:36 +02:00
qstringmatcher Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringref Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextboundaryfinder QTextBoundaryFinder: Fix handling of break opportunities 2012-10-12 07:44:51 +02:00
qtime Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtimeline Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qvarlengtharray Test: Split tst_QVarLengthArray::oldTests 2012-09-27 21:13:52 +02:00
qvector detach() safely in QVector::erase(), and update callers to not detach. 2012-10-19 18:04:11 +02:00
tools.pro Improve QPoint and QPointF auto tests. 2012-07-11 14:52:17 +02:00