mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK/Vector: Constify find_first_index()
This commit is contained in:
parent
6b4d7b6c19
commit
3dc0657e58
Notes:
sideshowbarker
2024-07-18 17:34:43 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/3dc0657e582 Pull-request: https://github.com/SerenityOS/serenity/pull/7369
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue