mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
AK: Move identity check from URL::operator==() to equals()
This commit is contained in:
parent
33396494f6
commit
2e23954271
2 changed files with 3 additions and 6 deletions
7
AK/URL.h
7
AK/URL.h
|
@ -101,12 +101,7 @@ public:
|
|||
static String percent_encode(StringView const& input, PercentEncodeSet set = PercentEncodeSet::Userinfo);
|
||||
static String percent_decode(StringView const& input);
|
||||
|
||||
bool operator==(URL const& other) const
|
||||
{
|
||||
if (this == &other)
|
||||
return true;
|
||||
return equals(other, ExcludeFragment::No);
|
||||
}
|
||||
bool operator==(URL const& other) const { return equals(other, ExcludeFragment::No); }
|
||||
|
||||
private:
|
||||
URL(String&& data_mime_type, String&& data_payload, bool payload_is_base64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue