mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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
Notes:
sideshowbarker
2024-07-18 07:04:21 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/dcf795085b5 Pull-request: https://github.com/SerenityOS/serenity/pull/9278
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue