qt5base-lts/src
Marc Mutz adcc68fd59 QVarLengthArray: remove unneeded copy in replace()
QVarLengthArray is neither implicitly shared, nor does it feature a
magic resize() on out-of-bounds.

Therefore, data() doesn't detach(), so 't' remains stable.

The only reason for the copy, then, would be if T wasn't
self-assignment-safe, but we don't support such types.

Remove the copy.

Change-Id: I8dd12e1c9b8131ae17d641354fe362554062b78d
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-12-07 22:53:14 +01:00
..
3rdparty 3rdparty: Add touchpad gestures support to bundled xinput xcb module 2021-11-13 17:58:45 +03:00
android Android: add methods to get the FileDescriptor for a Uri 2021-12-03 14:19:21 +02:00
concurrent Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
corelib QVarLengthArray: remove unneeded copy in replace() 2021-12-07 22:53:14 +01:00
dbus Doc: Fix qdoc warnings 2021-11-11 11:34:49 +01:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Fix qtdeclarative baseline test failure for text tables 2021-12-06 21:55:06 +01:00
network QNAM: Reintroduce h2c with an attribute 2021-12-04 08:20:52 +00:00
opengl Don't overwrite flipped textureTransform with unflipped on next blit 2021-12-01 15:03:34 +01:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdevtouch: Fix loading screen name for output mapping 2021-10-12 12:52:01 +02:00
plugins Revert "Don't allocate an OCIDateTime object unless we're going to use it" 2021-12-06 20:16:17 +00:00
printsupport Link printer plugins into user projects when using a static Qt 2021-11-19 18:48:07 +01:00
sql Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
testlib Suppress test set-up and tear-down in callgrind parent process 2021-12-06 19:06:30 +01:00
tools uic: Generate parameters for ambiguous signals 2021-12-07 14:01:58 +01:00
widgets Revert optimizations and fixes for moving/scrolling overlapped widgets 2021-12-07 14:01:58 +01:00
xml Remove leftovers for supporting SAX-based implenentation of QDomDocument 2021-11-26 22:42:40 +01:00
CMakeLists.txt