Skip to content

Commit

Permalink
Refactored uses of shared_ptr::unique as it's deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
denavila committed May 23, 2023
1 parent 7cb26ce commit a4cb821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/deniabilitydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ std::shared_ptr<CTxDestination> DeniabilityDialog::reserveDestination(interfaces
Assert(m_model && m_model->getEncryptionStatus() != WalletModel::Locked);

for (const auto& destination : m_reservedDestinations) {
if (destination.unique()) {
if (destination.use_count() == 1) {
return destination;
}
}
Expand Down

0 comments on commit a4cb821

Please sign in to comment.