qt5base-lts/tests/auto/corelib
Bradley T. Hughes 992a37234c Don't crash by modifying read-only shared_null
Functions that modify the d-pointer must detach or otherwise take
measures to not modify the const, read-only shared_null.

The setSharable(bool) function takes care to detach when setting
sharable to false, but should avoid setting the sharable data member
unless d is not the shared null.

Similarly, QMap<Key, T>::setInsertInOrder() needs to detach if it is
shared with the shared_null (the logic has been updated to be the same
as setSharable()).

Change-Id: Ida5cb9818b86695f1b9f0264418b955c56424898
Reviewed-on: http://codereview.qt-project.org/5929
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
2011-10-04 11:21:25 +02:00
..
animation Tests: Fix compilation on Windows. 2011-10-03 07:57:41 +02:00
codecs Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
concurrent Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
global Merge branch 'master' into refactor 2011-09-12 07:49:03 +02:00
io Tests: Fix compilation on Windows. 2011-10-03 07:57:41 +02:00
kernel Added bug ref in insignificant_test comment 2011-10-03 19:16:02 +02:00
plugin Tests: Fix compilation on Windows. 2011-10-03 07:57:41 +02:00
statemachine Moving relevant tests to corelib/statemachine 2011-09-01 12:54:42 +02:00
thread Make all uses of QBasicAtomicInt and Pointer use load() and store() 2011-10-03 07:57:41 +02:00
tools Don't crash by modifying read-only shared_null 2011-10-04 11:21:25 +02:00
xml Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
corelib.pro Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00