diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-12-07 14:12:45 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-12-07 22:53:14 +0100 |
commit | adcc68fd599d976dd79ad034b93e150138039681 (patch) | |
tree | 809d3e9a0bfcd3a4f624495eab4dd66aebe6aefa /cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake | |
parent | ac4c0e1f0293c6d533c0537b3e0139733e4212eb (diff) |
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>
Diffstat (limited to 'cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake')
0 files changed, 0 insertions, 0 deletions