Skip to content

Commit bee39d8

Browse files
rburchellawesomekling
authored andcommitted
AK: Use operator== for comparison in Vector::contains_slow
1 parent 2c4af74 commit bee39d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AK/Vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class Vector {
168168
bool contains_slow(const T& value) const
169169
{
170170
for (int i = 0; i < size(); ++i) {
171-
if (Traits<T>::equals(at(i), value))
171+
if (at(i) == value)
172172
return true;
173173
}
174174
return false;

0 commit comments

Comments
 (0)