diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-08-08 04:38:06 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-12 21:03:53 +0200 |
commit | dcf795085b5c14fe0435206661ac6b0b6630d195 (patch) | |
tree | f1830f1db53a2f2d9885a78b8de3b7fa5efe76cc | |
parent | 7ba991dc371ecd055829699852f7cb821472667f (diff) | |
download | serenity-dcf795085b5c14fe0435206661ac6b0b6630d195.zip |
AK: Don't zero Variant data in the move constructor
There's no reason to zero the data that will be immediately overwritten.
-rw-r--r-- | AK/Variant.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/AK/Variant.h b/AK/Variant.h index b4802f2200..22283acbd0 100644 --- a/AK/Variant.h +++ b/AK/Variant.h @@ -247,7 +247,6 @@ public: requires(!(IsTriviallyMoveConstructible<Ts> && ...)) #endif : Detail::MergeAndDeduplicatePacks<Detail::VariantConstructors<Ts, Variant<Ts...>>...>() - , m_data {} , m_index(old.m_index) { Helper::move_(old.m_index, old.m_data, m_data); |