qt5base-lts/tests/auto/corelib
Lars Knoll 168772fe8f Remove destructor calls from insert()
QList::insert() should never need to call a destructor. This
requires that we construct the new items in the list in order
and increment the size each time we constructed a new item.

Not having a code path that potentially calls destructors should
avoid the generation of lots of additional code for those
operations. In addition, the forward and backwards code paths
are now unified and only require somewhat different setup of
some variables at the start.

This gives us strong exception safety when appending one item,
weak exception safety in all other cases (in line with std::vector).

Change-Id: I6bf88365a34ea9e55ed1236be01a65499275d150
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-11-17 11:47:02 +01:00
..
animation Remove timeStep parameter from QAnimationDrive::advanceAnimation 2020-10-13 08:44:42 +02:00
global Add tests for QOperatingSystemVersion 2020-11-09 16:01:33 +01:00
io QFileInfo: mark constructors as explicit 2020-11-15 18:30:16 +01:00
itemmodels QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
kernel QSharedMemory: do not abuse QChar in a test 2020-11-08 02:13:22 +00:00
mimetypes CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
plugin Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
serialization Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
text QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
thread Conditionally disable code snippets that depend on cxx11_future 2020-11-13 20:31:22 +01:00
time Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
tools Remove destructor calls from insert() 2020-11-17 11:47:02 +01:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00