aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-06-22 15:50:59 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 16:01:41 +0300
commit23cbf6fd977b0c03cc2bd2231d009ec386e8d1fa (patch)
tree7503a0807801062411796a0b5697074fa5bdbcb5 /src
parentcommented regex (diff)
downloadmonero-23cbf6fd977b0c03cc2bd2231d009ec386e8d1fa.tar.xz
PendingTransactionImpl: pointer->reference
Diffstat (limited to 'src')
-rw-r--r--src/wallet/api/pending_transaction.cpp4
-rw-r--r--src/wallet/api/pending_transaction.h4
2 files changed, 4 insertions, 4 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();
diff --git a/src/wallet/api/pending_transaction.h b/src/wallet/api/pending_transaction.h
index 0ae3eb8e2..8e09bec91 100644
--- a/src/wallet/api/pending_transaction.h
+++ b/src/wallet/api/pending_transaction.h
@@ -41,7 +41,7 @@ class WalletImpl;
class PendingTransactionImpl : public PendingTransaction
{
public:
- PendingTransactionImpl(WalletImpl * wallet);
+ PendingTransactionImpl(WalletImpl &wallet);
~PendingTransactionImpl();
int status() const;
std::string errorString() const;
@@ -53,7 +53,7 @@ public:
private:
friend class WalletImpl;
- WalletImpl * m_wallet;
+ WalletImpl &m_wallet;
int m_status;
std::string m_errorString;