From: Miod Vallat Date: Wed, 10 Sep 2025 08:10:08 +0000 (+0200) Subject: Make DNSResourceRecord::operator==() const. X-Git-Tag: rec-5.4.0-alpha1~293^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff8ded9da138b6a3fb923de1225d861975646c8b;p=thirdparty%2Fpdns.git Make DNSResourceRecord::operator==() const. Signed-off-by: Miod Vallat --- diff --git a/pdns/dns.hh b/pdns/dns.hh index f1106828a3..2ab5f4754d 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -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 { diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 7895a788cf..ca15552ac6 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -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);