1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

AK: Move StringImpl::operator== implementation into StringImpl

This commit is contained in:
Nico Weber 2020-10-05 11:15:49 -04:00 committed by Andreas Kling
parent ee9c18c118
commit cc765e14ca
3 changed files with 9 additions and 8 deletions

View file

@ -60,10 +60,7 @@ bool String::operator==(const String& other) const
if (!other.m_impl)
return false;
if (length() != other.length())
return false;
return !memcmp(characters(), other.characters(), length());
return *m_impl == *other.m_impl;
}
bool String::operator==(const StringView& other) const