mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
qt, wallet: Drop unused parameter in WalletModel::setWalletEncrypted
This commit is contained in:
@@ -313,12 +313,9 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
|
||||
}
|
||||
}
|
||||
|
||||
bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase)
|
||||
bool WalletModel::setWalletEncrypted(const SecureString& passphrase)
|
||||
{
|
||||
if (encrypted) {
|
||||
return m_wallet->encryptWallet(passphrase);
|
||||
}
|
||||
return false;
|
||||
return m_wallet->encryptWallet(passphrase);
|
||||
}
|
||||
|
||||
bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase)
|
||||
|
||||
Reference in New Issue
Block a user