QXmlAttributes: re-enable suppressed move special member functions

... at least for compilers that support defaulting functions.

The class is polymorphic, but shouldn't, so add a note to
remove the vtable in Qt 6.

Change-Id: I93e4402004b7c52ba506946220e214dd6990f1f7
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2016-08-16 15:33:18 +02:00
parent a41393d0bc
commit ceb3c2ea62
1 changed files with 10 additions and 1 deletions

View File

@ -116,7 +116,16 @@ 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();
int index(const QString& qName) const;
int index(QLatin1String qName) const;