summaryrefslogtreecommitdiff
path: root/src/hash_map.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-01-18 09:00:54 +1100
committerMaxime Coste <mawww@kakoune.org>2018-01-18 09:00:54 +1100
commiteeacb8b5a87da979d547a223cca6a319717281c8 (patch)
tree12df59ab041de98416b9f1fde17e2760f8a489c0 /src/hash_map.cc
parentb4f8497f8dc4cbbd703e94a205b7cea90927ce03 (diff)
Use the _str and _sv string literals more often
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 95b75f18..56189aef 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[StringView{"test"}] == 10);
- map.remove(StringView{"test"});
+ kak_assert(map["test"_sv] == 10);
+ map.remove("test"_sv);
}
// make sure we get what we expect from the hash map