QXmlAttributes: mark as shared-come-qt6

Requires adding a member-swap() function.

Change-Id: I47f9fac84a6f41bb1e487c27fdcf6879b5a771d1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Marc Mutz 2016-08-16 15:33:31 +02:00
parent e8c8c9fea7
commit a4fc6a3047

View File

@ -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