mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +00:00
AK: Use StringImpl::operator== in FlyString
This commit is contained in:
parent
4c33209011
commit
3dbd5c98da
1 changed files with 1 additions and 5 deletions
|
@ -40,11 +40,7 @@ struct FlyStringImplTraits : public AK::Traits<StringImpl*> {
|
||||||
{
|
{
|
||||||
ASSERT(a);
|
ASSERT(a);
|
||||||
ASSERT(b);
|
ASSERT(b);
|
||||||
if (a == b)
|
return *a == *b;
|
||||||
return true;
|
|
||||||
if (a->length() != b->length())
|
|
||||||
return false;
|
|
||||||
return !__builtin_memcmp(a->characters(), b->characters(), a->length());
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue