aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-29 22:11:32 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-29 22:19:40 +0200
commitcd5638f894954a8424af6bd22f4386b121e5dc8f (patch)
tree003b223d9b1434f1eaadf66866154ab11c586522 /src/wallet/api/wallet.h
parentMerge pull request #4409 (diff)
downloadmonero-cd5638f894954a8424af6bd22f4386b121e5dc8f.tar.xz
Merge pull request #4417
a21da905 Wallet: use unique_ptr for WalletImpl members (oneiric)
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h
index 64350cee7..5963a7607 100644
--- a/src/wallet/api/wallet.h
+++ b/src/wallet/api/wallet.h
@@ -215,16 +215,16 @@ private:
friend class SubaddressImpl;
friend class SubaddressAccountImpl;
- tools::wallet2 * m_wallet;
+ std::unique_ptr<tools::wallet2> m_wallet;
mutable boost::mutex m_statusMutex;
mutable int m_status;
mutable std::string m_errorString;
std::string m_password;
- TransactionHistoryImpl * m_history;
- Wallet2CallbackImpl * m_wallet2Callback;
- AddressBookImpl * m_addressBook;
- SubaddressImpl * m_subaddress;
- SubaddressAccountImpl * m_subaddressAccount;
+ std::unique_ptr<TransactionHistoryImpl> m_history;
+ std::unique_ptr<Wallet2CallbackImpl> m_wallet2Callback;
+ std::unique_ptr<AddressBookImpl> m_addressBook;
+ std::unique_ptr<SubaddressImpl> m_subaddress;
+ std::unique_ptr<SubaddressAccountImpl> m_subaddressAccount;
// multi-threaded refresh stuff
std::atomic<bool> m_refreshEnabled;