summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-26 12:13:16 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-26 12:13:16 -0700
commit518fd4c5ababbfbf28e010a9c27098e8f6669e4b (patch)
tree79e20cf56d24f2aaf9463056ccb52803426be082 /public
parent5cc24654fb345189140acb4711ff981e1c720951 (diff)
downloadpdfium-518fd4c5ababbfbf28e010a9c27098e8f6669e4b.tar.xz
CFX_ByteString::Reserve(), ReleaseBuffer() fixes.
Also identical fixes for CFX_WideString. Reserve() on an empty string would not actually reserve a buffer. Currently unused, but there are places where this would really help. ReleaseBuffer() would rarely return memory to the system, since it would short-circuit thinking it could operate in place. Tune the algorithm slightly so that we hold on when the savings is small. Bounds check release buffer args rather than just asserting. Add tests for all of these. Review URL: https://codereview.chromium.org/1916303004
Diffstat (limited to 'public')
0 files changed, 0 insertions, 0 deletions