qt6-bb10/tests/auto/corelib/tools
Thiago Macieira 55c6f09b3a Remove "delete value" from QSharedPointer
This allows a QSharedPointer to be used in contexts where the class in
question is still forward-declared. This produced a warning in Qt 4 due
to the expansion of the template, even if there was no chance of the
pointer being deleted there (because the reference count could not drop
to zero).

Now, not only is the warning removed, but you can actually have the
reference count drop to zero in a forward-declared class and it will
do the right thing. That's because the deleter function is always
recorded from the point of construction and we're sure that it wasn't
forward-declared.

The unit test for forward-declarations had to be rewritten. The
previous version was passing only because the QSharedPointer object
was created under the "tracking pointers" mode, which causes a custom
deleter to be used in all cases.

Task-number: QTBUG-25819
Change-Id: Ife37a4cea4551d94084b49ee03504dd39b8802c1
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-06-12 20:09:09 +02:00
..
qalgorithms Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qarraydata Fix compilation of tests/auto/corelib/tools with QT_STRICT_ITERATORS 2012-06-12 04:30:20 +02:00
qbitarray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbytearray Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
qbytearraymatcher Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qchar Line Breaking Algorithm: handle the Object Replacement Character 2012-06-10 15:58:13 +02:00
qcontiguouscache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcryptographichash Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
qdate Clean up and consolidate QDateTime-related tests. 2012-06-12 11:05:39 +02:00
qdatetime Clean up and consolidate QDateTime-related tests. 2012-06-12 11:05:39 +02:00
qeasingcurve Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
qelapsedtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qexplicitlyshareddatapointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfreelist Mark tst_qfreelist as parallel-safe 2012-06-01 03:16:04 +02:00
qhash Fix compilation of tests/auto/corelib/tools with QT_STRICT_ITERATORS 2012-06-12 04:30:20 +02:00
qline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlist Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qlocale Check LANGUAGE as well in QSystemLocale::fallbackLocale 2012-06-06 15:29:34 +02:00
qmap Fix loop conditions, after warnings from clang 2012-03-28 09:36:33 +02:00
qmargins Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qpair QPair: specialise QTypeInfo based on the typeinfos of its arguments 2012-03-01 14:26:06 +01:00
qpoint Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qqueue Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qrect Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qregexp QRegExp: fix usage of uninitialized values 2012-05-19 01:45:04 +02:00
qregularexpression QRegularExpression: add more test data 2012-04-13 15:25:19 +02:00
qringbuffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedvaluerollback Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qset containers: add C++11-style c{begin,end}() as alias for const{Begin,End}() 2012-03-17 09:10:57 +01:00
qsharedpointer Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
qsize Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsizef Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstring Update the Unicode related autotests 2012-06-10 15:57:57 +02:00
qstring_no_cast_from_bytearray Ensure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY 2012-05-09 12:07:47 +02:00
qstringbuilder Fix crash in QStringBuilder when concatenating data-less QLatin1String 2012-06-01 01:22:06 +02:00
qstringlist make QStringList::sort() to take a Qt::CaseSensitivity param 2012-04-12 10:39:22 +02:00
qstringmatcher Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringref Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtextboundaryfinder Line Breaking Algorithm: handle the Object Replacement Character 2012-06-10 15:58:13 +02:00
qtime Clean up and consolidate QDateTime-related tests. 2012-06-12 11:05:39 +02:00
qtimeline Make QTimeLine test significant. 2012-04-26 09:27:25 +02:00
qvarlengtharray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvector Implement QVector with QArrayData interface. 2012-05-30 17:07:27 +02:00
tools.pro Ensure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY 2012-05-09 12:07:47 +02:00