diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-13 20:11:35 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-15 03:00:45 +0000 |
| commit | b655734965155146290f3f3a9205243af11e42fb (patch) | |
| tree | 326e5ca5dcc0cdb10de37682350f34a1f542ac6c /src/gui/doc/snippets/plaintextlayout/main.cpp | |
| parent | f468f76455c91cf1c5b477ab9348337522b4d9aa (diff) | |
QString: fix an aliasing issue in remove(QString)
Even in Qt 5, remove() can be passed an alias to *this. In Qt 6, with
the advent of substring sharing, this will become even more
pronounced. Use the same fix as was already used in QString::insert().
Pick-to: 5.15
Change-Id: I1a0d3d99fd7dff6e727661646d2cbfdc94df2682
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/plaintextlayout/main.cpp')
0 files changed, 0 insertions, 0 deletions
