mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 21:57:18 +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: bee39d8524
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…
Add table
Add a link
Reference in a new issue