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
Notes: sideshowbarker 2024-07-19 13:20:08 +09:00

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;