diff options
| author | practicalswift <[email protected]> | 2018-07-27 00:07:37 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-07-27 18:47:03 +0200 |
| commit | 620361fce8b3d3c274a7b2beaed199b65ac4fb41 (patch) | |
| tree | d6c4a1daffd680b3f8b3f55ae296209344f5080d /src/wallet/wallet.cpp | |
| parent | Merge #13423: [net] Thread safety annotations in net_processing (diff) | |
| download | discoin-620361fce8b3d3c274a7b2beaed199b65ac4fb41.tar.xz discoin-620361fce8b3d3c274a7b2beaed199b65ac4fb41.zip | |
Fix accidental use of the addition assignment operator ("+="). Remove newlines from error message.
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 3ec6aefae..9c76a8538 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4109,7 +4109,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name, // Regenerate the keypool if upgraded to HD if (hd_upgrade) { if (!walletInstance->TopUpKeyPool()) { - InitError(_("Unable to generate keys") += "\n"); + InitError(_("Unable to generate keys")); return nullptr; } } @@ -4137,7 +4137,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name, // Top up the keypool if (!walletInstance->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS) && !walletInstance->TopUpKeyPool()) { - InitError(_("Unable to generate initial keys") += "\n"); + InitError(_("Unable to generate initial keys")); return nullptr; } |