From aefb9ffe50cef6372d4b348d9281c84c2c926778 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 19 Nov 2020 10:53:06 +0100 Subject: [PATCH] Fix the DNSName move assignement operator A misplaced 'const' prevented it from being called, making every move of a DNSName into a full copy. Introduced in d720eb8add5ebda11867e8b404125e0b68ed2911. (cherry picked from commit 8d1bb300460d5cc97b4599ea8eddeb7b6d35decf) --- pdns/dnsname.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsname.hh b/pdns/dnsname.hh index 222edbaf38..20d1994b29 100644 --- a/pdns/dnsname.hh +++ b/pdns/dnsname.hh @@ -71,7 +71,7 @@ public: } return *this; } - DNSName& operator=(const DNSName&& rhs) + DNSName& operator=(DNSName&& rhs) { if (this != &rhs) { d_storage = std::move(rhs.d_storage); -- 2.47.2