Make strWalletFile const

This commit is contained in:
Jonas Schnelli 2016-11-11 14:32:38 +01:00
parent ab914a6530
commit f7345050e9
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
1 changed files with 2 additions and 4 deletions

View File

@ -600,7 +600,7 @@ public:
*/ */
mutable CCriticalSection cs_wallet; mutable CCriticalSection cs_wallet;
std::string strWalletFile; const std::string strWalletFile;
void LoadKeyPool(int nIndex, const CKeyPool &keypool) void LoadKeyPool(int nIndex, const CKeyPool &keypool)
{ {
@ -625,11 +625,9 @@ public:
SetNull(); SetNull();
} }
CWallet(const std::string& strWalletFileIn) CWallet(const std::string& strWalletFileIn) : strWalletFile(strWalletFileIn)
{ {
SetNull(); SetNull();
strWalletFile = strWalletFileIn;
fFileBacked = true; fFileBacked = true;
} }