mirror of https://github.com/oxen-io/oxen-core.git
Make pointer const
This commit is contained in:
parent
81eddcd26a
commit
e09b23a143
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue