]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix the DNSName move assignement operator
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Nov 2020 09:53:06 +0000 (10:53 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Nov 2020 09:53:06 +0000 (10:53 +0100)
A misplaced 'const' prevented it from being called, making every
move of a DNSName into a full copy.
Introduced in d720eb8add5ebda11867e8b404125e0b68ed2911.

pdns/dnsname.hh

index 1e146e831fd43e9216c312881f873f39c6aaea3c..7f7ee0ad3c972f6f95dd469d0e6208319fedb0d5 100644 (file)
@@ -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);