AK: Don't zero Variant data in the move constructor

There's no reason to zero the data that will be immediately overwritten.
This commit is contained in:
Ali Mohammad Pur 2021-08-08 04:38:06 +04:30 committed by Andreas Kling
parent 7ba991dc37
commit dcf795085b

View file

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