qt, wallet: Drop unused parameter in WalletModel::setWalletEncrypted

This commit is contained in:
Hennadii Stepanov
2020-10-28 18:43:42 +02:00
parent f886a20b02
commit 4146a31ccb
3 changed files with 5 additions and 11 deletions

View File

@@ -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)