qt6-bb10/tests/auto/corelib
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
..
animation Make animation autotests build without widgets 2012-06-07 00:39:05 +02:00
codecs Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
global Add Q_UINT64_C to 64 bit integer literal. 2012-05-15 23:03:23 +02:00
io Remove widgets dependency from qdatastream autotest 2012-06-07 00:39:05 +02:00
itemmodels Use a QVector<int> instead of a QSet<int> in itemviews/models. 2012-06-12 04:30:07 +02:00
json Fixed QJsonObject::find() 2012-06-06 02:03:11 +02:00
kernel Fix automatic declaration of QSharedPointer<T> metatypes. 2012-06-12 11:16:45 +02:00
mimetypes Removed CONFIG+=parallel_test from suspected parallel-unsafe tests [2] 2012-05-23 03:17:59 +02:00
plugin Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
statemachine Make qstatemachine autotest build without widgets 2012-06-07 00:38:41 +02:00
thread Use QPointer instead of QWeakPointer. 2012-06-05 18:42:26 +02:00
tools Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
xml Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00