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
parent
a41393d0bc
commit
ceb3c2ea62
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue