From 2a3d384336261626c2a98c573868c4fa9d051bc5 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Fri, 24 Nov 2023 14:10:16 -0800 Subject: [PATCH] [Glacier] Don't move const-refs in hashmap. --- lib/glacier/container/hash_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/glacier/container/hash_map.h b/lib/glacier/container/hash_map.h index 65506b8..a101bda 100644 --- a/lib/glacier/container/hash_map.h +++ b/lib/glacier/container/hash_map.h @@ -115,7 +115,7 @@ ErrorCode HashMap::Insert(const K& key, const V& value) { return ALREADY_EXISTS; } } - ll.PushFront({Move(key), Move(value)}); + ll.PushFront({key, value}); size_++; return OK; }