diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-02-17 00:54:04 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-02-17 07:35:31 +0000 |
commit | 0e3d6fe4f69955bf98e23a382caf5251e2b47ea0 (patch) | |
tree | b752589eded1c4c656bd520dd19a78c248cdb020 /src/corelib/tools/qfreelist_p.h | |
parent | d9c3d2301dba6922e10d8509b220a795686e8fa9 (diff) |
QVarLengthArray: fix appending an already-contained item
Like the lvalue QVector::append() overload, when we reallocate,
we need to take a copy of the function's argument because the
reference will get stale upon reallocation.
Add a test.
[ChangeLog][QtCore][QVarLengthArray] Fixed a bug involving
appending an item already in the container to the container
again.
Change-Id: I06eeed6cb383dd5924e47a302bb3d1666d04c8e8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qfreelist_p.h')
0 files changed, 0 insertions, 0 deletions