diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2025-05-09 18:35:25 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2025-09-08 22:28:40 +0300 |
| commit | 0af13fec5a59a25eaf705fa101ebecfe5e0277db (patch) | |
| tree | afb49c1ab4f6a4bdd2f967bd5042a659079e25d7 /src/plugins/platforms/android/qandroidplatformwindow.cpp | |
| parent | 41ee90f64b713f3037357ec629eaeb8f2c9539a6 (diff) | |
QByteArray: replace(pos, len,~~): don't detach the underlying data array
If the byte array would detach or reallocate it would copy the data
over, then do the replacements; instead create a new byte array and copy
the data and replacement to it as needed, then swap it with `this`.
The behavior for negative `len` is preserved for historical reasons.
Handle `after`-pointing-into-this by using memmove() which can work with
overlapping ranges.
Pick-to: 6.10
Task-number: QTBUG-106185
Change-Id: Iedc848bebabf5621f459b11f0edf0e27807b9be0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformwindow.cpp')
0 files changed, 0 insertions, 0 deletions
