Skip to content

Commit f54e460

Browse files
committed
Merge #9132: Make strWalletFile const
f734505 Make strWalletFile const (Jonas Schnelli)
2 parents 770364b + f734505 commit f54e460

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/wallet/wallet.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
600600
*/
601601
mutable CCriticalSection cs_wallet;
602602

603-
std::string strWalletFile;
603+
const std::string strWalletFile;
604604

605605
void LoadKeyPool(int nIndex, const CKeyPool &keypool)
606606
{
@@ -625,11 +625,9 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
625625
SetNull();
626626
}
627627

628-
CWallet(const std::string& strWalletFileIn)
628+
CWallet(const std::string& strWalletFileIn) : strWalletFile(strWalletFileIn)
629629
{
630630
SetNull();
631-
632-
strWalletFile = strWalletFileIn;
633631
fFileBacked = true;
634632
}
635633

0 commit comments

Comments
 (0)