From a4fc6a304741dcd9647cfbf6eb01efad84b3eb68 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 16 Aug 2016 15:33:31 +0200 Subject: QXmlAttributes: mark as shared-come-qt6 Requires adding a member-swap() function. Change-Id: I47f9fac84a6f41bb1e487c27fdcf6879b5a771d1 Reviewed-by: Lars Knoll --- src/xml/sax/qxml.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/xml') 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 -- cgit v1.2.3