From 7c092b78e395b36e95c66533163a5da09728a0bb Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 25 Jan 2022 08:59:48 -0500 Subject: [PATCH] remove unnecessary references --- parallel_hashmap/phmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index 5c59579..cc786fa 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -1451,7 +1451,7 @@ public: } template - iterator lazy_emplace_with_hash(const key_arg& key, size_t &hashval, F&& f) { + iterator lazy_emplace_with_hash(const key_arg& key, size_t hashval, F&& f) { auto res = find_or_prepare_insert(key, hashval); if (res.second) { lazy_emplace_at(res.first, std::forward(f)); @@ -1467,7 +1467,7 @@ public: } template - void emplace_single_with_hash(const key_arg& key, size_t &hashval, F&& f) { + void emplace_single_with_hash(const key_arg& key, size_t hashval, F&& f) { auto res = find_or_prepare_insert(key, hashval); if (res.second) lazy_emplace_at(res.first, std::forward(f)); @@ -3095,7 +3095,7 @@ public: // emplace_single // -------------- template - void emplace_single_with_hash(const key_arg& key, size_t &hashval, F&& f) { + void emplace_single_with_hash(const key_arg& key, size_t hashval, F&& f) { Inner& inner = sets_[subidx(hashval)]; auto& set = inner.set_; typename Lockable::UniqueLock m(inner);