summaryrefslogtreecommitdiff
path: root/AK/HashMap.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-03-03 09:27:50 +0000
committerLinus Groh <mail@linusgroh.de>2023-03-03 11:02:21 +0000
commitbfdbb4b6ed57d829960b8ff1ba366375e070b99d (patch)
treecf06d4beab598a94bb59d768dd26314a5f54711e /AK/HashMap.h
parent11023a3c53ed3e4d68d915126517930ab11abb27 (diff)
downloadserenity-bfdbb4b6ed57d829960b8ff1ba366375e070b99d.zip
AK: Add missing const qualifier to HashCompatible HashMap::contains()
Diffstat (limited to 'AK/HashMap.h')
-rw-r--r--AK/HashMap.h2
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();
}