diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-07 14:28:21 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-09 21:43:54 +0100 |
commit | 067d0689c5f7ff720fcfec9ff4d2898741948fed (patch) | |
tree | 5ebc5ab1a712a19cd13cd86b53a65f6c58e8a2fc /AK/StdLibExtras.h | |
parent | 7d6908d9a5da71479d0fde2f2175bde525e49776 (diff) | |
download | serenity-067d0689c5f7ff720fcfec9ff4d2898741948fed.zip |
AK: Replace C-style casts
Diffstat (limited to 'AK/StdLibExtras.h')
-rw-r--r-- | AK/StdLibExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index 67e6b3ac3b..c369322c26 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -134,8 +134,8 @@ inline void swap(T& a, U& b) { if (&a == &b) return; - U tmp = move((U&)a); - a = (T &&) move(b); + U tmp = move(static_cast<U&>(a)); + a = static_cast<T&&>(move(b)); b = move(tmp); } |