mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Use StringImpl::operator== in FlyString
This commit is contained in:
parent
4c33209011
commit
3dbd5c98da
Notes:
sideshowbarker
2024-07-19 02:00:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3dbd5c98dac
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue