qt5base-lts/tests/auto/corelib
Ahmad Samir b8b675014f 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>
2022-11-04 03:06:30 +02:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global QOperatingSystemVersion: add tests for the globals 2022-10-28 14:42:40 -07:00
io Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
mimetypes Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
platform Revert "Android: fix Android assets handler not listing dirs with only sub dirs" 2022-10-25 13:38:46 +00:00
plugin Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
serialization Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
text QString: don't detach in remove(QChar ch, Qt::CaseSensitivity cs) 2022-11-04 03:06:30 +02:00
thread Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
time Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
tools Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00