diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-11 14:32:38 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-11-11 14:32:38 +0100 |
commit | f7345050e9ad6a67b722c092735518bd2f6f152a (patch) | |
tree | 3c188ab9ae0cd665dff91bee07f4fe5ec517edaf /src/wallet | |
parent | ab914a65301bd48f2b6c7a64bf57295ae74f2902 (diff) |
Make strWalletFile const
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index a527c6d84e..409d817046 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -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; } |