LookupServer: Make DNSName::operator== ignore case
This commit is contained in:
parent
95d4d36b5c
commit
12feb79cef
Notes:
sideshowbarker
2024-07-18 12:33:43 +09:00
Author: https://github.com/MaxWipfli Commit: https://github.com/SerenityOS/serenity/commit/12feb79cef6 Pull-request: https://github.com/SerenityOS/serenity/pull/7875 Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/gunnarbeutner
2 changed files with 1 additions and 6 deletions
|
@ -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('.');
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue