summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydatapointer.h
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-07-21 15:27:53 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-08-19 19:48:13 +0200
commitecfb5d2d15e586c40ca2e8b097fb77821be8c884 (patch)
tree8dc30f9a78d21dff56e7785c383e0a76740ae926 /src/corelib/tools/qarraydatapointer.h
parent8dc7761e6d490877af18949c0177097e5c857424 (diff)
Port QXmlStreamReader from QStringRef to QStringView
Use the new QtPrivate::XmlString class as the container holding the string data internally. It basically a "QStringRef lite", purely used in the implemntation. This replaces all usages of QStringRef in the parser. Fixes: QTBUG-84318 Change-Id: I557bbc6831301866602586d11d53283affd034a8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
-rw-r--r--src/corelib/tools/qarraydatapointer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qarraydatapointer.h b/src/corelib/tools/qarraydatapointer.h
index c1d27e4b17a..d1697d64932 100644
--- a/src/corelib/tools/qarraydatapointer.h
+++ b/src/corelib/tools/qarraydatapointer.h
@@ -193,6 +193,7 @@ public:
typename Data::ArrayOptions detachFlags() const noexcept { return d ? d->detachFlags() : Data::DefaultAllocationFlags; }
Data *d_ptr() noexcept { return d; }
+ void setBegin(T *begin) noexcept { ptr = begin; }
qsizetype freeSpaceAtBegin() const noexcept
{