summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-10-25 09:19:51 +0200
committerAhmad Samir <a.samirh78@gmail.com>2022-11-04 03:06:30 +0200
commitb8b675014f4f38cd3cee15584edd3b561bc0846e (patch)
tree94da01721a35b4a1f21876894f4ddb190188026f /src/gui/painting
parent358b7a9e747549f85c1d1631dfb21210b52b36f5 (diff)
QString: don't detach in remove(QChar ch, Qt::CaseSensitivity cs)
- If the string isn't shared, don't call detach(), instead remove characters matching ch, and resize() - If the string is shared, create a new string, and copy all characters except the ones that would be removed, see task for details Update unittets so that calls to this overload of remove() test both code paths (replace() calls remove(QChar, cs) internally). Drive-by change: use QCOMPARE() instead of QTEST() Task-number: QTBUG-106181 Change-Id: I1fa08cf29baac2560fca62861fc4a81967b54e92 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions