diff --git a/AK/FlyString.cpp b/AK/FlyString.cpp index 637ef9c5966..5736329fdb9 100644 --- a/AK/FlyString.cpp +++ b/AK/FlyString.cpp @@ -40,11 +40,7 @@ struct FlyStringImplTraits : public AK::Traits { { 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; } };