mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
HashTable: Don't use move assignment in set(const T&).
This commit is contained in:
parent
b1d113e32a
commit
53479f9356
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue