diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2019-08-28 12:46:39 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-08-30 19:26:41 +0000 |
commit | 6b884d2aa129e6f8d552cbaa9dbfa034eb0aca3e (patch) | |
tree | ccd7438b9dfdb8394b38d6271d4e23e8534e546d /src/gui/vulkan/qvulkanwindow.cpp | |
parent | e75c691d073a1e627db29294a0c12a55c67e3e49 (diff) |
QByteArray: Don't realloc when resizing to a smaller size
The same change was done for QVector and QString for 5.6 while
QByteArray was not done/forgotten. For the sake of consistency
we should converge on one type of behavior.
The change mirrors the one for QString:
50ab7c16d470dbb0984bc2b48c5f49d94106edd0
[ChangeLog][QtCore][QByteArray] resize() will no longer shrink the
capacity. That means resize(0) now reliably preserves capacity().
Change-Id: I4fcfa92f75fa472af0eaab567e1cdd62e6d336b0
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/vulkan/qvulkanwindow.cpp')
0 files changed, 0 insertions, 0 deletions