qt5base-lts/tests/auto/corelib
Thiago Macieira a3aa2fcfa7 Introduce the Mutable flag and move QArrayDataPointer::needsDetach
The Mutable flag now contains the information on whether the data this
QArrayData points to is mutable. This decouples the mutability /
immutability setting from the allocation and from the type of data,
opening the way for mutable raw or foreign data.

There are still plenty of places in the source code that check the
size of the allocation when it actually wants d->isMutable(). Fixing
this will require reviewing all the code, so is left for later.

The needsDetach() function is moved to QArrayData and
de-constified. It returns true when a reallocation is necessary if the
data is to be modified.

Change-Id: I17e2bc5a3f6ef1f3eba8a205acd9852b95524f57
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-12-08 10:29:01 +01:00
..
animation Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Merge remote-tracking branch 'origin/5.15' into dev 2019-11-25 11:30:04 +01:00
io Merge remote-tracking branch 'origin/5.15' into dev 2019-11-27 08:41:33 +01:00
itemmodels Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
kernel Use Q_NAMESPACE for the Qt namespace, and remove the old moc hack to support it 2019-12-06 20:29:15 +00:00
mimetypes Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
plugin Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
serialization Merge remote-tracking branch 'origin/5.15' into dev 2019-12-04 01:00:23 +01:00
statemachine QStateMachine: Don't scream at the user 2019-10-24 10:26:03 +02:00
text Introduce the Mutable flag and move QArrayDataPointer::needsDetach 2019-12-08 10:29:01 +01:00
thread Get rid of QT_STRICT_ITERATORS 2019-11-04 12:52:26 +00:00
time Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-03 06:57:05 +01:00
tools Introduce the Mutable flag and move QArrayDataPointer::needsDetach 2019-12-08 10:29:01 +01:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00