diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-08-29 21:58:32 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-08-30 09:06:34 +0000 |
commit | c78a716b723812e14563b2e1c96c050703dbc9c7 (patch) | |
tree | f14b92deb79e5b70a8c7f80e4b787fa2b0edccd9 /tests/benchmarks/corelib | |
parent | 54f6c9bfd900fbee8800d720879ecb0c023585ac (diff) |
QDateTimeParser: replace QVector with QVarLengthArray<12>
The lists of month and day-of-week names usually currently do not
exceed 13 elements (incl. possible leap months), so don't use
QVector, use QVarLengthArray with Prealloc = 13.
This value may be increased when ISO week-as-month is merged, but
the container remains valid even with 52 "months" (though the code
that calculates its runtime size will naturally need to be adjusted).
Change-Id: I4ead897d933f89fc092850fcc22ca41da0a6ddc6
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib')
0 files changed, 0 insertions, 0 deletions