mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:47:46 +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
1 changed files with 0 additions and 1 deletions
|
@ -247,7 +247,6 @@ public:
|
||||||
requires(!(IsTriviallyMoveConstructible<Ts> && ...))
|
requires(!(IsTriviallyMoveConstructible<Ts> && ...))
|
||||||
#endif
|
#endif
|
||||||
: Detail::MergeAndDeduplicatePacks<Detail::VariantConstructors<Ts, Variant<Ts...>>...>()
|
: Detail::MergeAndDeduplicatePacks<Detail::VariantConstructors<Ts, Variant<Ts...>>...>()
|
||||||
, m_data {}
|
|
||||||
, m_index(old.m_index)
|
, m_index(old.m_index)
|
||||||
{
|
{
|
||||||
Helper::move_(old.m_index, old.m_data, m_data);
|
Helper::move_(old.m_index, old.m_data, m_data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue