From bee39d852473f6ff28a7408530efa3b944d04611 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Thu, 11 Jul 2019 14:06:28 +0200 Subject: [PATCH] AK: Use operator== for comparison in Vector::contains_slow --- AK/Vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Vector.h b/AK/Vector.h index 698c23da0b..09568a9adc 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -168,7 +168,7 @@ public: bool contains_slow(const T& value) const { for (int i = 0; i < size(); ++i) { - if (Traits::equals(at(i), value)) + if (at(i) == value) return true; } return false;