summaryrefslogtreecommitdiff
path: root/src/hash_map.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-07 01:12:37 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-07 01:12:37 +0000
commitf0ae0b84102a0cb7d0dda0b8b7b1ba425d5d6eb7 (patch)
tree0a38687f1796139771873cd760192af747baf4b4 /src/hash_map.cc
parent6373338c50a9431de7440b9274a079b4dc6c5755 (diff)
Replace IdMap with HashMap
Diffstat (limited to 'src/hash_map.cc')
-rw-r--r--src/hash_map.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash_map.cc b/src/hash_map.cc
index 131dc615..4db90f8c 100644
--- a/src/hash_map.cc
+++ b/src/hash_map.cc
@@ -50,8 +50,8 @@ UnitTest test_hash_map{[] {
{
HashMap<String, int> map;
map.insert({"test", 10});
- kak_assert(map["test"_sv] == 10);
- map.remove("test"_sv);
+ kak_assert(map[StringView{"test"}] == 10);
+ map.remove(StringView{"test"});
}
// make sure we get what we expect from the hash map