LookupServer: Make DNSName::operator== ignore case

This commit is contained in:
Max Wipfli 2021-06-07 14:41:20 +02:00 committed by Ali Mohammad Pur
parent 95d4d36b5c
commit 12feb79cef
Notes: sideshowbarker 2024-07-18 12:33:43 +09:00
2 changed files with 1 additions and 6 deletions

View file

@ -75,11 +75,6 @@ void DNSName::randomize_case()
m_name = builder.to_string();
}
bool DNSName::operator==(const DNSName& other) const
{
return as_string() == other.as_string();
}
OutputStream& operator<<(OutputStream& stream, const DNSName& name)
{
auto parts = name.as_string().split_view('.');

View file

@ -23,7 +23,7 @@ public:
void randomize_case();
bool operator==(const DNSName&) const;
bool operator==(const DNSName& other) const { return Traits::equals(*this, other); }
class Traits : public AK::Traits<DNSName> {
public: