diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-07-24 12:29:51 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-08-19 19:48:10 +0200 |
commit | 3398eeadf617880af38fb540f26273df87ba0b1f (patch) | |
tree | 5d1261b202d813c6e579c4bff0f68df33d2a2769 /src/corelib/text/qstring.h | |
parent | 551eef1aa6d8b0e71b68072bcb6c7a71e39e1222 (diff) |
Refactor QXmlStreamStringRef
Use a QStringPrivate inside the implementation. This saves
two pointers, and actually makes this a safe replacement for
QStringRef inside the implementation of QXmlStreamReader.
Unexport the class as all members are inline, and move it
into the QtPrivate namespace as class QXmlString.
Change-Id: I43fa4684f569514c8c621838dcc346657ac1a915
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/corelib/text/qstring.h')
-rw-r--r-- | src/corelib/text/qstring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index 57ac84f48f..131d79a70c 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -974,6 +974,7 @@ private: public: inline DataPointer &data_ptr() { return d; } + inline const DataPointer &data_ptr() const { return d; } }; // |