diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-05 17:36:01 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-14 15:44:22 +0000 |
commit | 205824103eb974f59a92a3d8f231f5b189176939 (patch) | |
tree | 4628976770a0a2c1f3a55fef1f54cbe69472bcf6 /src/corelib/text/text.pri | |
parent | 944c5f40b3ca48f89456abeb821b3fe7ba6babf4 (diff) |
QVarLengthArray: optimize pop_back()
Don't call realloc() with all its machinery when we know exactly what
to do: destroy the last element and decrease the size by one.
Extend the test, removing the unused Foo class for a new Tracker one.
Change-Id: I568eef4f6335669689fb16fd23af92cb4d6464bd
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/text/text.pri')
0 files changed, 0 insertions, 0 deletions