diff options
author | oneiric <oneiric@i2pmail.org> | 2018-09-22 22:03:36 +0000 |
---|---|---|
committer | oneiric <oneiric@i2pmail.org> | 2018-09-22 22:03:36 +0000 |
commit | a21da9058bf33939ce07c2eef8ba9b2da508192b (patch) | |
tree | 49b579cefb947e296a735290d585f66cd507e588 /src/wallet/api/wallet.h | |
parent | Merge pull request #4416 (diff) | |
download | monero-a21da9058bf33939ce07c2eef8ba9b2da508192b.tar.xz |
Wallet: use unique_ptr for WalletImpl members
Use unique_ptr to manage WalletImpl internals, rather than raw
pointers.
Diffstat (limited to 'src/wallet/api/wallet.h')
-rw-r--r-- | src/wallet/api/wallet.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index e3a300317..b2317b9ba 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; |