Give WalletModel::UnlockContext move semantics

This commit is contained in:
Pieter Wuille
2019-05-09 18:07:33 -07:00
parent 79046d5749
commit 0b09a57aec
2 changed files with 8 additions and 5 deletions

View File

@@ -482,7 +482,7 @@ WalletModel::UnlockContext::~UnlockContext()
}
}
void WalletModel::UnlockContext::CopyFrom(const UnlockContext& rhs)
void WalletModel::UnlockContext::CopyFrom(UnlockContext&& rhs)
{
// Transfer context; old object no longer relocks wallet
*this = rhs;