mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Use StringImpl::operator== in FlyString
This commit is contained in:
@@ -40,11 +40,7 @@ struct FlyStringImplTraits : public AK::Traits<StringImpl*> {
|
||||
{
|
||||
ASSERT(a);
|
||||
ASSERT(b);
|
||||
if (a == b)
|
||||
return true;
|
||||
if (a->length() != b->length())
|
||||
return false;
|
||||
return !__builtin_memcmp(a->characters(), b->characters(), a->length());
|
||||
return *a == *b;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user