From 6bfe184261cdc75a30892e545281c1435b2c2e27 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 18 Apr 2024 23:39:33 -0500 Subject: [PATCH] [ox/std] Remove unnecessary copying from HashMap::expand --- deps/ox/src/ox/std/hashmap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/hashmap.hpp b/deps/ox/src/ox/std/hashmap.hpp index 37658149..f1c05431 100644 --- a/deps/ox/src/ox/std/hashmap.hpp +++ b/deps/ox/src/ox/std/hashmap.hpp @@ -212,7 +212,7 @@ template constexpr void HashMap::expand() { Vector r; for (std::size_t i = 0; i < m_keys.size(); ++i) { - K k{m_keys[i]}; + auto const&k = m_keys[i]; access(r, k) = std::move(access(m_pairs, k)); } m_pairs = std::move(r);