mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
AK: Use operator== for comparison in Vector::contains_slow
This commit is contained in:
parent
2c4af740c7
commit
bee39d8524
Notes:
sideshowbarker
2024-07-19 13:20:08 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/bee39d85247 Pull-request: https://github.com/SerenityOS/serenity/pull/294
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue