diff --git a/AK/Vector.h b/AK/Vector.h index e75e6a58c9..74dd02f101 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -681,7 +681,7 @@ public: return AK::find(begin(), end(), value); } - Optional find_first_index(const T& value) + Optional find_first_index(const T& value) const { if (const auto index = AK::find_index(begin(), end(), value); index < size()) {