diff options
Diffstat (limited to 'src/xml/sax/qxml.h')
-rw-r--r-- | src/xml/sax/qxml.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xml/sax/qxml.h b/src/xml/sax/qxml.h index 94dc8dfb8e..9be14bd7a9 100644 --- a/src/xml/sax/qxml.h +++ b/src/xml/sax/qxml.h @@ -116,16 +116,14 @@ class Q_XML_EXPORT QXmlAttributes { public: QXmlAttributes(); -#ifdef Q_COMPILER_DEFAULT_MEMBERS QXmlAttributes(const QXmlAttributes &) = default; - QXmlAttributes(QXmlAttributes &&) Q_DECL_NOTHROW = default; + QXmlAttributes(QXmlAttributes &&) noexcept = default; QXmlAttributes &operator=(const QXmlAttributes &) = default; - QXmlAttributes &operator=(QXmlAttributes &&) Q_DECL_NOTHROW = default; -#endif // default members + QXmlAttributes &operator=(QXmlAttributes &&) noexcept = default; QT6_NOT_VIRTUAL ~QXmlAttributes(); - void swap(QXmlAttributes &other) Q_DECL_NOTHROW + void swap(QXmlAttributes &other) noexcept { qSwap(attList, other.attList); qSwap(d, other.d); |