Merge #9132: Make strWalletFile const

f734505 Make strWalletFile const (Jonas Schnelli)
pull/308/head
Wladimir J. van der Laan 8 years ago
commit f54e4605fc
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

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

Loading…
Cancel
Save