aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-11-15 10:05:49 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-11-15 10:06:01 +0100
commitf54e4605fc31bd0a5bc8a3f6ba165be2df5f31d5 (patch)
tree80016330db7c842fff5fcb6575ce7117b3694bf9 /src
parent770364b8eaf718210af9ca2ec53ecc3540f234b3 (diff)
parentf7345050e9ad6a67b722c092735518bd2f6f152a (diff)
Merge #9132: Make strWalletFile const
f734505 Make strWalletFile const (Jonas Schnelli)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.h6
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;
}