From 3dc0657e582ced2cd24b6f05e96b54b867de9775 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sat, 22 May 2021 02:26:57 +0200 Subject: [PATCH] AK/Vector: Constify find_first_index() --- AK/Vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Vector.h b/AK/Vector.h index e75e6a58c95..74dd02f1018 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()) {