summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglprogrambinarycache.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-02-26 10:39:22 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-03-11 14:00:45 +0100
commit57d91d8029064b592dee8adf819bde676763df28 (patch)
treeff7ffdef7a0028cf2a2c5bc3692891fbc622446d /src/gui/opengl/qopenglprogrambinarycache.cpp
parent61c2d3f10124dbf4c6ddb44bc9790431bd389567 (diff)
QByteArray: make replace() consistent with QString's
Assuming QString has seen a lot more effort put into this, simply copy the preamble of QString::replace(ptr, n, ptr, n, cs) over to the corresponding QByteArray::replace(view, view) function, so they behave the same. On reviewer request, change d.size == 0 to isEmpty(), in both functions' preambles. [ChangeLog][QtCore][Important Behavior Changes][QByteArray] replace() is now consistent with QString::replace() in its treatment of empty haystacks and needles. Fixes: QTBUG-134079 Change-Id: I2366febee7de4646d6b33c39d2338760b58f2ec4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache.cpp')
0 files changed, 0 insertions, 0 deletions