From e30faab6fd380f5a9eba07d776ddd7ad6c2e26da Mon Sep 17 00:00:00 2001 From: Spencer Lievens Date: Fri, 5 May 2017 13:31:25 +0200 Subject: [PATCH] Make strWalletFile const (#1459) * Make strWalletFile const * Insert Line Space for Legibility --- src/wallet/wallet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 2d9756d0c..b5ce77cce 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -644,7 +644,7 @@ public: mutable CCriticalSection cs_wallet; bool fFileBacked; - std::string strWalletFile; + const std::string strWalletFile; std::set setKeyPool; std::map mapKeyMetadata; @@ -658,11 +658,11 @@ public: SetNull(); } - CWallet(const std::string& strWalletFileIn) + CWallet(const std::string& strWalletFileIn) + : strWalletFile(strWalletFileIn) { SetNull(); - strWalletFile = strWalletFileIn; fFileBacked = true; }