AK: Use StringImpl::operator== in FlyString

This commit is contained in:
Andreas Kling 2020-10-06 17:16:39 +02:00
parent 4c33209011
commit 3dbd5c98da
Notes: sideshowbarker 2024-07-19 02:00:28 +09:00

View file

@ -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;
}
};