qt5base-lts/tests/auto/corelib/tools/qarraydata
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
..
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qarraydata.pro Separate exception safety primitives from operations 2020-08-18 12:55:38 +02:00
simplevector.h Simplify the code for QList::emplace() 2020-11-17 11:45:52 +01:00
tst_qarraydata.cpp Remove destructor calls from insert() 2020-11-17 11:47:02 +01:00