From 1b3bef3ef4bd222d545bd93e5e7accbe3d0a7709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 6 Jun 2024 12:52:01 +0200 Subject: [PATCH] QDnsTlsAssociationRecord: Use the PURE_SWAP macro for move-assign Found in API-review. Change-Id: I77aecfdf31a2a3507798faa03f24f3ea26bf8173 Reviewed-by: Thiago Macieira Reviewed-by: Marc Mutz (cherry picked from commit 7e7b7eb37e780d5c43ba291d4f88d29f4b31d403) Reviewed-by: Qt Cherry-pick Bot --- src/network/kernel/qdnslookup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();