diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-08-16 15:33:31 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-10-04 06:25:54 +0000 |
commit | a4fc6a304741dcd9647cfbf6eb01efad84b3eb68 (patch) | |
tree | c21a440f067a3e57dfe0d94bb3e52d3df3b770c4 /src | |
parent | e8c8c9fea75680b7decbdbce7f8ea9d06b9ff077 (diff) |
QXmlAttributes: mark as shared-come-qt6
Requires adding a member-swap() function.
Change-Id: I47f9fac84a6f41bb1e487c27fdcf6879b5a771d1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/xml/sax/qxml.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xml/sax/qxml.h b/src/xml/sax/qxml.h index ee60823003..49c8184d4b 100644 --- a/src/xml/sax/qxml.h +++ b/src/xml/sax/qxml.h @@ -127,6 +127,12 @@ public: #endif ~QXmlAttributes(); + void swap(QXmlAttributes &other) Q_DECL_NOTHROW + { + qSwap(attList, other.attList); + qSwap(d, other.d); + } + int index(const QString& qName) const; int index(QLatin1String qName) const; int index(const QString& uri, const QString& localPart) const; @@ -155,6 +161,7 @@ private: QXmlAttributesPrivate *d; }; +Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QXmlAttributes) // // SAX Input Source |