mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge #9132: Make strWalletFile const
f734505 Make strWalletFile const (Jonas Schnelli)
This commit is contained in:
commit
f54e4605fc
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue