diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-09-01 09:07:09 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-09-02 23:10:21 +0200 |
commit | b98b7de0da395be33e2d1646ac62075422ce4343 (patch) | |
tree | 43f5f07eaf5cdba36745ed32ff29383eb8cdbc46 /src/corelib/text/qstring.h | |
parent | 39e07ebf64e115460e2a7573c13dde014c8e33ca (diff) |
QByteArray: Disregard space at front during ::reserve(...)
Traditionally when calling reserve it's because you expect to append
up to X amount of bytes. We should keep that behavior the same.
With another patch still in the works current behavior caused an issue
with QStringBuilder in QNAM, as mirrored in the testcase attached.
Change-Id: I9792a8f158fc9235e3de48ac8b06ac2c10e7f3dc
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.h')
0 files changed, 0 insertions, 0 deletions