mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
HashTable: Don't use move assignment in set(const T&).
This commit is contained in:
parent
b1d113e32a
commit
53479f9356
Notes:
sideshowbarker
2024-07-19 13:27:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/53479f93565
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…
Reference in a new issue