Make pointer const

This commit is contained in:
Jason Rhinelander 2021-06-23 08:35:26 -03:00
parent 81eddcd26a
commit e09b23a143
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ struct Wallet2CallbackImpl;
// indirection into the tools::wallet2 instance.
struct LockedWallet {
std::unique_lock<std::mutex> refresh_lock;
tools::wallet2* wallet;
tools::wallet2* const wallet;
LockedWallet(const std::unique_ptr<tools::wallet2>& w, std::mutex& refresh_mutex)
: refresh_lock{refresh_mutex}, wallet{w.get()} {}
tools::wallet2* operator->() { return wallet; }