diff options
Diffstat (limited to 'src/xml/sax/qxml.h')
-rw-r--r-- | src/xml/sax/qxml.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/xml/sax/qxml.h b/src/xml/sax/qxml.h index 4af664d2dd..49c8184d4b 100644 --- a/src/xml/sax/qxml.h +++ b/src/xml/sax/qxml.h @@ -116,7 +116,22 @@ class Q_XML_EXPORT QXmlAttributes { public: QXmlAttributes(); - virtual ~QXmlAttributes(); +#ifdef Q_COMPILER_DEFAULT_MEMBERS + QXmlAttributes(const QXmlAttributes &) = default; + QXmlAttributes(QXmlAttributes &&) Q_DECL_NOTHROW = default; + QXmlAttributes &operator=(const QXmlAttributes &) = default; + QXmlAttributes &operator=(QXmlAttributes &&) Q_DECL_NOTHROW = default; +#endif // default members +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + virtual // ### Qt 6: this value class don't need no virtual dtor +#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; @@ -146,6 +161,7 @@ private: QXmlAttributesPrivate *d; }; +Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QXmlAttributes) // // SAX Input Source |