summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-06-25 23:54:05 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-06-28 14:22:44 +0000
commit6e57e41f9aef5ccfa122c10bc6253d47dafd93d2 (patch)
treee69f111643702aef71889273dbca295f9f6f00dc /mkspecs/features
parent87d8ee755bfdef8e72a122789c2e3ed382881a12 (diff)
QVarLengthArray: fix aliasing error in insert(it, n, v)
Taking the copy after the resize is completely pointless: the copy is there to ensure that `t`, being a reference potentially aliasing an element in [begin(), end()[ before the resize(), isn't invalidated by the resize(), so it must be taken before resize(). Add a comment so the next rewrite doesn't cause this to be mixed up again. [ChangeLog][QtCore][QVarLengthArray] Fixed an aliasing bug affecting insertions of objects aliasing existing elements. Pick-to: 6.2 6.1 6.0 5.15 5.12 Change-Id: I26bc449fa99bf8d09a19147a12a69ac4314cc61d Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'mkspecs/features')
0 files changed, 0 insertions, 0 deletions