mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add missing const qualifier to HashCompatible HashMap::contains()
This commit is contained in:
parent
11023a3c53
commit
bfdbb4b6ed
Notes:
sideshowbarker
2024-07-16 23:34:49 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/bfdbb4b6ed Pull-request: https://github.com/SerenityOS/serenity/pull/17698 Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ public:
|
|||
}
|
||||
|
||||
template<Concepts::HashCompatible<K> Key>
|
||||
requires(IsSame<KeyTraits, Traits<K>>) [[nodiscard]] bool contains(Key const& value)
|
||||
requires(IsSame<KeyTraits, Traits<K>>) [[nodiscard]] bool contains(Key const& value) const
|
||||
{
|
||||
return find(value) != end();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue