qt5base-lts/tests/auto/corelib/tools/qarraydata
Giuseppe D'Angelo 594abde1a2 Enforce that statically allocated array-like containers have 0 capacity
It has been the case for both QStringLiteral and QByteArrayLiteral
since Qt 5.0, and Q_ARRAY_LITERAL since Qt 6.0.

Since it's definitely surprising, add a note in the docs, which
is "somehow" consistent with the interpretation of capacity as
the biggest possible size before we reallocate. Since it's 0,
any manipulation of the size will cause a reallocation.
(Alternatively: the capacity() is for how many elements memory was
requested from the free store. No memory was allocated, so 0...)

Task-number: QTBUG-84069
Change-Id: I5c7d21a22d1bd8b8d9b71143e33d537ca0224acd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-05-14 14:19:47 +02:00
..
CMakeLists.txt Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qarraydata.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
simplevector.h Start moving QArrayData's size and data pointer to the main class 2019-12-08 10:29:42 +01:00
tst_qarraydata.cpp Enforce that statically allocated array-like containers have 0 capacity 2020-05-14 14:19:47 +02:00