diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-15 10:05:49 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-15 10:06:01 +0100 |
commit | f54e4605fc31bd0a5bc8a3f6ba165be2df5f31d5 (patch) | |
tree | 80016330db7c842fff5fcb6575ce7117b3694bf9 | |
parent | 770364b8eaf718210af9ca2ec53ecc3540f234b3 (diff) | |
parent | f7345050e9ad6a67b722c092735518bd2f6f152a (diff) |
Merge #9132: Make strWalletFile const
f734505 Make strWalletFile const (Jonas Schnelli)
-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; } |