diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-06-22 15:50:59 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-22 15:50:59 +0300 |
commit | 4e5521d87d3897e8ce547e7bf11ef24024a9dbdf (patch) | |
tree | b166ecc401888d522eebc4e245112d84ec49c23d /src/wallet/api/pending_transaction.cpp | |
parent | commented regex (diff) | |
download | monero-4e5521d87d3897e8ce547e7bf11ef24024a9dbdf.tar.xz |
PendingTransactionImpl: pointer->reference
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/pending_transaction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp index db40851b4..c4a770f87 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -48,7 +48,7 @@ namespace Bitmonero { PendingTransaction::~PendingTransaction() {} -PendingTransactionImpl::PendingTransactionImpl(WalletImpl *wallet) +PendingTransactionImpl::PendingTransactionImpl(WalletImpl &wallet) : m_wallet(wallet) { @@ -77,7 +77,7 @@ bool PendingTransactionImpl::commit() try { while (!m_pending_tx.empty()) { auto & ptx = m_pending_tx.back(); - m_wallet->m_wallet->commit_tx(ptx); + m_wallet.m_wallet->commit_tx(ptx); // success_msg_writer(true) << tr("Money successfully sent, transaction ") << get_transaction_hash(ptx.tx); // if no exception, remove element from vector m_pending_tx.pop_back(); |