1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

AK: Use operator== for comparison in Vector::contains_slow

This commit is contained in:
Robin Burchell 2019-07-11 14:06:28 +02:00 committed by Andreas Kling
parent 2c4af740c7
commit bee39d8524

View file

@ -168,7 +168,7 @@ public:
bool contains_slow(const T& value) const
{
for (int i = 0; i < size(); ++i) {
if (Traits<T>::equals(at(i), value))
if (at(i) == value)
return true;
}
return false;