diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-09 10:15:21 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-12 02:03:15 +0100 |
commit | d4611ba3a5b46ee790e6c790ef6c3d771d3507ee (patch) | |
tree | 75e44c60ec95cbeef0ff7c069b3c9f6a38b4a20c /tests/auto/corelib/tools | |
parent | 234e0eadc83a4de6e48bce884542773fc1396e51 (diff) |
QFlatMap: add an alias for using QVarLengthArrays
... in an attempt to foster the use of this data structure by making
it less onerous to spell.
Pick-to: 6.3 6.2
Change-Id: Ib9d17029c75278edde6ba90f65f68af179a6d230
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r-- | tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp b/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp index af616f0a4c..1ba060cc91 100644 --- a/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp +++ b/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp @@ -558,8 +558,7 @@ void tst_QFlatMap::viewIterators() void tst_QFlatMap::varLengthArray() { - using Map = QFlatMap<int, QByteArray, std::less<int>, - QVarLengthArray<int, 1024>, QVarLengthArray<QByteArray, 1024>>; + using Map = QVarLengthFlatMap<int, QByteArray, 1024>; Map m{ { 2, "twee" } }; m.insert(1, "een"); m.remove(1); |