summaryrefslogtreecommitdiff
path: root/AK/TypedTransfer.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-12-13 10:29:30 +0330
committerAndreas Kling <kling@serenityos.org>2022-12-14 11:44:32 +0100
commitf96a3c002aa994d5811a677bd93553ccf9a8abf1 (patch)
treec22c82871d944c345bc6bad1e21d57f37800d1f4 /AK/TypedTransfer.h
parent72514d6915a685552a258d2e4c85d9d52184c1b6 (diff)
downloadserenity-f96a3c002aa994d5811a677bd93553ccf9a8abf1.zip
Everywhere: Stop shoving things into ::std and mentioning them as such
Note that this still keeps the old behaviour of putting things in std by default on serenity so the tools can be happy, but if USING_AK_GLOBALLY is unset, AK behaves like a good citizen and doesn't try to put things in the ::std namespace. std::nothrow_t and its friends get to stay because I'm being told that compilers assume things about them and I can't yeet them into a different namespace...for now.
Diffstat (limited to 'AK/TypedTransfer.h')
-rw-r--r--AK/TypedTransfer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/TypedTransfer.h b/AK/TypedTransfer.h
index 80625b0f3c..cc18fb9717 100644
--- a/AK/TypedTransfer.h
+++ b/AK/TypedTransfer.h
@@ -25,9 +25,9 @@ public:
for (size_t i = 0; i < count; ++i) {
if (destination <= source)
- new (&destination[i]) T(std::move(source[i]));
+ new (&destination[i]) T(AK::move(source[i]));
else
- new (&destination[count - i - 1]) T(std::move(source[count - i - 1]));
+ new (&destination[count - i - 1]) T(AK::move(source[count - i - 1]));
}
}