Skip to content

Commit

Permalink
Output: move c'tor instead of partial copy c'tor
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed May 29, 2024
1 parent d43c4e4 commit ca00ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/block_crypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -689,10 +689,13 @@ namespace beam
{
}

Output(const Output& o)
Output(Output&& o)
:TxElement(o)
,m_Coinbase(o.m_Coinbase)
,m_Incubation(o.m_Incubation)
,m_pConfidential(std::move(o.m_pConfidential))
,m_pPublic(std::move(o.m_pPublic))
,m_pAsset(std::move(o.m_pAsset))
{
}

Expand Down

0 comments on commit ca00ebc

Please sign in to comment.