AK/Vector: Constify find_first_index()

This commit is contained in:
Jelle Raaijmakers 2021-05-22 02:26:57 +02:00 committed by Andreas Kling
parent 6b4d7b6c19
commit 3dc0657e58

View file

@ -681,7 +681,7 @@ public:
return AK::find(begin(), end(), value);
}
Optional<size_t> find_first_index(const T& value)
Optional<size_t> find_first_index(const T& value) const
{
if (const auto index = AK::find_index(begin(), end(), value);
index < size()) {