summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-06-28 10:01:53 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-07-12 13:24:56 +0200
commit6bc227a06a0d1392d220aa79ddb1cdc145d4f76e (patch)
tree2fec1d932fda80146f40a94dee860ea896d8edd0 /src/xml
parentc78ec505293ed576779c0ee7342746cde39281d6 (diff)
Port QXmlStremReader to QAnyStringView
Port the constructor and addData() method to QAnyStringView, but keep the overloads taking a QByteArray to avoid extra copies when actual QByteArray is passed. These overlaods need to be Q_WEAK_OVERLOADs, to avoid ambiguities (e.g. for const char * arguments). Additionally, add a test to make sure the patch doesn't break parsing from a QLatin1StringView input. [ChangeLog][QtCore][QXmlStremReader] Added constructor and addData() overloads taking QAnyStringView. Change-Id: I0efaab82a2123271c88407e380f3c67d1099a4a6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/xml')
0 files changed, 0 insertions, 0 deletions