summaryrefslogtreecommitdiff
path: root/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-02-10 14:25:20 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-15 19:49:48 +0000
commit8bb9290b72b379c9af6ae99b9f9b66235fd99675 (patch)
treedf381da8aceb74dbdb75dbf8dcbd3a71a65c0ef2 /tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp
parent16d67bcb3dba5bdd6facb0e4334ebed897363938 (diff)
downloadqtbase-8bb9290b72b379c9af6ae99b9f9b66235fd99675.tar.gz
QVarLengthArray: clear() is not resize(0)
The latter needs the value_type to be default-constructible, which shouldn't be required to clear() a container. Use std::destroy_n() instead. [ChangeLog][QtCore][QVarLengthArray] clear() no longer requires the value_type to be default-constructible. Change-Id: I806de8f3826b50c0bd38156892c3afeb15f13ac9 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit fbfee2d7c59a7c6cd17ae7a3f63f983b9f3316f5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp')
0 files changed, 0 insertions, 0 deletions