Make strWalletFile const (#1459)

* Make strWalletFile const

* Insert Line Space for Legibility
This commit is contained in:
Spencer Lievens 2017-05-05 13:31:25 +02:00 committed by UdjinM6
parent 9901cf4338
commit e30faab6fd

View File

@ -644,7 +644,7 @@ public:
mutable CCriticalSection cs_wallet;
bool fFileBacked;
std::string strWalletFile;
const std::string strWalletFile;
std::set<int64_t> setKeyPool;
std::map<CKeyID, CKeyMetadata> mapKeyMetadata;
@ -658,11 +658,11 @@ public:
SetNull();
}
CWallet(const std::string& strWalletFileIn)
CWallet(const std::string& strWalletFileIn)
: strWalletFile(strWalletFileIn)
{
SetNull();
strWalletFile = strWalletFileIn;
fFileBacked = true;
}