1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

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

View file

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