summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-19 20:02:23 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-22 17:12:16 (GMT)
commit9f08d620588752a6617d0e265c6b7137704e39c5 (patch)
tree2ec8f8a3c4f640d85e7a669c99ff0b79124e5cb7 /doc/src
parent96a3d36a33dc5c1c7e414c873316027fab6cecf9 (diff)
downloadQt-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