Skip to content

QVarLengthArray: fix size update on failed append()

If the in-place constructor throws, the old code had already updated the container's size(). Fix by delaying the update to after the in-place construction.

[ChangeLog][QtCore][QVarLengthArray] Fixed a bug whereby a failed append() would leave the container with an inconsistent size().

Pick-to: 6.2 5.15 Change-Id: Ief1e668d945149bd8ba96c8af1398baaa7876880 Reviewed-by: Mårten Nordheim marten.nordheim@qt.io (cherry picked from commit d4a88e4e)

  • asturmlechner 2022-01-09: resolve conflicts with dev branch changes

Please take a close look before merging, considering the changes.

Merge request reports