summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytearray.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-09-01 11:10:40 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-09-03 14:15:32 +0200
commit8eef75f0b52519f15078c29dfde5354ca7cccbdb (patch)
treeecba814a391c93dc2f33af7d02e7dcaf625d51cc /src/corelib/text/qbytearray.h
parent69d239ef00c57baf5af5c760bfedd5344d1d0090 (diff)
QList/QByteArray/QString: Base GrowsBackwards heuristic on old size
If you grow from 10 to 100 characters then even if the point of insertion was the end then it will get the GrowsBackwards option on realloc. By basing it on the oldSize the intention of the position to insert at is better clarified. Change-Id: Ia73f4902e8356d94709556de5704cbfa0e1a3a56 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qbytearray.h')
0 files changed, 0 insertions, 0 deletions