mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +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
|
@ -327,6 +327,8 @@ String URL::serialize_for_display() const
|
|||
|
||||
bool URL::equals(URL const& other, ExcludeFragment exclude_fragments) const
|
||||
{
|
||||
if (this == &other)
|
||||
return true;
|
||||
if (!m_valid || !other.m_valid)
|
||||
return false;
|
||||
return serialize(exclude_fragments) == other.serialize(exclude_fragments);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue