diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-11-30 15:45:50 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-12-01 00:20:25 +0100 |
commit | 1a61b85a2c04d48496a2e83359bf1d65abbc14dc (patch) | |
tree | 5f57091c25bbf6b3cbdcaf2348a7790efb91cb84 /tests/auto/other/collections/tst_collections.cpp | |
parent | c8913829001e683a7a14bb342faad4dfd67e4c4b (diff) |
QVarLengthArray: simplify default ctor
Instead of calling the QVLA(qsizetype) ctor and letting the optimizer
and inliner have a field day on them, simply set the trivial values
for a, s, and ptr manually.
Mark it as noexcept.
Task-number: QTBUG-84785
Change-Id: I011826eacdaf63a4c37b21465e5fe4a6e70a1ab7
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/other/collections/tst_collections.cpp')
0 files changed, 0 insertions, 0 deletions