HashTable: Don't use move assignment in set(const T&).

This commit is contained in:
Andreas Kling 2019-06-29 12:02:52 +02:00
parent b1d113e32a
commit 53479f9356
Notes: sideshowbarker 2024-07-19 13:27:16 +09:00

View file

@ -203,7 +203,7 @@ void HashTable<T, TraitsForT>::set(const T& value)
auto& bucket = lookup(value); auto& bucket = lookup(value);
for (auto& e : bucket) { for (auto& e : bucket) {
if (e == value) { if (e == value) {
e = move(value); e = value;
return; return;
} }
} }