Skip to content

Commit a4cb821

Browse files
committed
Refactored uses of shared_ptr::unique as it's deprecated.
1 parent 7cb26ce commit a4cb821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/deniabilitydialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ std::shared_ptr<CTxDestination> DeniabilityDialog::reserveDestination(interfaces
14511451
Assert(m_model && m_model->getEncryptionStatus() != WalletModel::Locked);
14521452

14531453
for (const auto& destination : m_reservedDestinations) {
1454-
if (destination.unique()) {
1454+
if (destination.use_count() == 1) {
14551455
return destination;
14561456
}
14571457
}

0 commit comments

Comments
 (0)