qt5base-lts/tests/auto/corelib/tools
Bradley T. Hughes a219b8f382 Fix QString and QByteArray reserve() and squeeze()
These functions should not take care not to unconditionally set the
capacityReserved private member, since the d may be referencing the
const shared_null or shared_empty which live in read-only memory.

The squeeze() methods check for ref > 1 instead of ref != 1 to prevent
detaching from the shared_null/shared_empty unnecessarily; the
shared_null/shared_empty ref count is -1, meaning squeeze() will never
detach from it.

Change-Id: Id3f1725a6f08b3a462343640a47bbe78f08ca7e7
Rubberstamped-by: Lars Knoll
Reviewed-on: http://codereview.qt-project.org/5454
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2011-09-23 13:42:22 +02:00
..
qalgorithms Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qbitarray Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qbytearray Fix QString and QByteArray reserve() and squeeze() 2011-09-23 13:42:22 +02:00
qbytearraymatcher Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qcache Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qchar Boost performance of QChar::isSpace 2011-09-15 20:39:28 +02:00
qcontiguouscache Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qcryptographichash Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qdate Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qdatetime Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qeasingcurve Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qelapsedtimer Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qexplicitlyshareddatapointer Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qfreelist Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qhash Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qline Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qlist Fix autotest gui/widgets dependencies 2011-09-19 10:24:25 +02:00
qlocale Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qmap Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qmargins Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qpoint Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qqueue Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qrect Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qregexp Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qringbuffer Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qscopedpointer Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qscopedvaluerollback Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qset Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qsharedpointer Fix the test case 2011-09-17 07:36:26 +02:00
qsize Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qsizef Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qstl Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qstring Fix QString and QByteArray reserve() and squeeze() 2011-09-23 13:42:22 +02:00
qstringbuilder Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qstringlist Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qstringmatcher Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qstringref Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qtextboundaryfinder Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qtime Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qtimeline Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qvarlengtharray Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qvector Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
tools.pro Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00