mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Everywhere: Remove pessimizing and redundant move()
This commit is contained in:
parent
fa28cc85e6
commit
f59ad2dc57
Notes:
sideshowbarker
2024-07-18 21:16:43 +09:00
Author: https://github.com/awesomekling
Commit: f59ad2dc57
9 changed files with 11 additions and 11 deletions
|
@ -45,9 +45,9 @@ public:
|
|||
|
||||
for (size_t i = 0; i < count; ++i) {
|
||||
if (destination <= source)
|
||||
new (&destination[i]) T(AK::move(source[i]));
|
||||
new (&destination[i]) T(std::move(source[i]));
|
||||
else
|
||||
new (&destination[count - i - 1]) T(AK::move(source[count - i - 1]));
|
||||
new (&destination[count - i - 1]) T(std::move(source[count - i - 1]));
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue