]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Make DNSResourceRecord::operator==() const.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 10 Sep 2025 08:10:08 +0000 (10:10 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 10 Sep 2025 09:58:55 +0000 (11:58 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/dns.hh
pdns/dnsrecords.cc

index f1106828a356fd7321af7a67d54ea3581c4512f0..2ab5f4754dce99041c770ee24ba3350189755342 100644 (file)
@@ -104,7 +104,7 @@ public:
   bool auth{true};
   bool disabled{};
 
-  bool operator==(const DNSResourceRecord& rhs);
+  bool operator==(const DNSResourceRecord& rhs) const;
 
   bool operator<(const DNSResourceRecord& other) const
   {
index 7895a788cfad6cd4029885ff1584b5f8625e1a6a..ca15552ac64d8371d11e69eaa83f77b6b301ba2b 100644 (file)
@@ -85,7 +85,7 @@ string DNSResourceRecord::getZoneRepresentation(bool noDot) const {
   return ret.str();
 }
 
-bool DNSResourceRecord::operator==(const DNSResourceRecord& rhs)
+bool DNSResourceRecord::operator==(const DNSResourceRecord& rhs) const
 {
   string lcontent=toLower(content);
   string rcontent=toLower(rhs.content);