mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-02 22:24:26 +00:00
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:
parent
7ba991dc37
commit
dcf795085b
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue