diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-19 20:02:23 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-22 17:12:16 (GMT) |
commit | 9f08d620588752a6617d0e265c6b7137704e39c5 (patch) | |
tree | 2ec8f8a3c4f640d85e7a669c99ff0b79124e5cb7 /doc/src | |
parent | 96a3d36a33dc5c1c7e414c873316027fab6cecf9 (diff) | |
download | Qt-9f08d620588752a6617d0e265c6b7137704e39c5.zip Qt-9f08d620588752a6617d0e265c6b7137704e39c5.tar.gz Qt-9f08d620588752a6617d0e265c6b7137704e39c5.tar.bz2 |
avoid double reallocations in inserting operations
operator+=() and co. would first detach, and then realloc if they found
the reservation too small. in particular, appending anything to an empty
list would trigger this double reallocation (first copy shared_null,
then grow the copy).
entirely rewritten take 3, this time without memory corruption or
exhaustion ... :)
Reviewed-by: joao
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions