diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-03 09:27:50 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-03 11:02:21 +0000 |
commit | bfdbb4b6ed57d829960b8ff1ba366375e070b99d (patch) | |
tree | cf06d4beab598a94bb59d768dd26314a5f54711e /AK/HashMap.h | |
parent | 11023a3c53ed3e4d68d915126517930ab11abb27 (diff) | |
download | serenity-bfdbb4b6ed57d829960b8ff1ba366375e070b99d.zip |
AK: Add missing const qualifier to HashCompatible HashMap::contains()
Diffstat (limited to 'AK/HashMap.h')
-rw-r--r-- | AK/HashMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/HashMap.h b/AK/HashMap.h index 8ddcbf0f6a..429c2a7953 100644 --- a/AK/HashMap.h +++ b/AK/HashMap.h @@ -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(); } |