diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp index 0330fb091b..d6e0b38462 100644 --- a/src/network/kernel/qhostaddress.cpp +++ b/src/network/kernel/qhostaddress.cpp @@ -34,6 +34,8 @@ QHostAddressPrivate::QHostAddressPrivate() memset(&a6, 0, sizeof(a6)); } +QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QHostAddressPrivate) + void QHostAddressPrivate::setAddress(quint32 a_) { a = a_; @@ -449,6 +451,18 @@ QHostAddress::QHostAddress(const QHostAddress &address) { } +/*! + \fn QHostAddress::QHostAddress(QHostAddress &&other) + + \since 6.8 + + Move-constructs a new QHostAddress from \a other. + + \note The moved-from object \a other is placed in a partially-formed state, + in which the only valid operations are destruction and assignment of a new + value. +*/ + /*! Constructs a QHostAddress object for \a address. */ diff --git a/src/network/kernel/qhostaddress.h b/src/network/kernel/qhostaddress.h index 6aa045c959..3c77c2111b 100644 --- a/src/network/kernel/qhostaddress.h +++ b/src/network/kernel/qhostaddress.h @@ -19,6 +19,7 @@ QT_BEGIN_NAMESPACE class QHostAddressPrivate; +QT_DECLARE_QESDP_SPECIALIZATION_DTOR(QHostAddressPrivate) class QT6_ONLY(Q_NETWORK_EXPORT) QIPv6Address { @@ -81,6 +82,7 @@ public: explicit QHostAddress(const sockaddr *address); explicit QHostAddress(const QString &address); QHostAddress(const QHostAddress ©); + QHostAddress(QHostAddress &&other) noexcept = default; QHostAddress(SpecialAddress address); ~QHostAddress();