1
0
Fork 0
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:
Andreas Kling 2021-03-17 16:30:02 +01:00
parent fa28cc85e6
commit f59ad2dc57
Notes: sideshowbarker 2024-07-18 21:16:43 +09:00
9 changed files with 11 additions and 11 deletions

View file

@ -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;