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