diff --git a/src/network/kernel/qdnslookup.h b/src/network/kernel/qdnslookup.h index 8d21e99c84b..2e52b0ee3e6 100644 --- a/src/network/kernel/qdnslookup.h +++ b/src/network/kernel/qdnslookup.h @@ -193,7 +193,7 @@ public: QDnsTlsAssociationRecord(QDnsTlsAssociationRecord &&other) : d(std::move(other.d)) {} - QDnsTlsAssociationRecord &operator=(QDnsTlsAssociationRecord &&other) noexcept { swap(other); return *this; } + QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QDnsTlsAssociationRecord) QDnsTlsAssociationRecord &operator=(const QDnsTlsAssociationRecord &other); ~QDnsTlsAssociationRecord();