mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
PendingTransactionImpl: pointer->reference
This commit is contained in:
parent
c1d9e7cd2a
commit
23cbf6fd97
@ -48,7 +48,7 @@ namespace Bitmonero {
|
|||||||
PendingTransaction::~PendingTransaction() {}
|
PendingTransaction::~PendingTransaction() {}
|
||||||
|
|
||||||
|
|
||||||
PendingTransactionImpl::PendingTransactionImpl(WalletImpl *wallet)
|
PendingTransactionImpl::PendingTransactionImpl(WalletImpl &wallet)
|
||||||
: m_wallet(wallet)
|
: m_wallet(wallet)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ bool PendingTransactionImpl::commit()
|
|||||||
try {
|
try {
|
||||||
while (!m_pending_tx.empty()) {
|
while (!m_pending_tx.empty()) {
|
||||||
auto & ptx = m_pending_tx.back();
|
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);
|
// success_msg_writer(true) << tr("Money successfully sent, transaction ") << get_transaction_hash(ptx.tx);
|
||||||
// if no exception, remove element from vector
|
// if no exception, remove element from vector
|
||||||
m_pending_tx.pop_back();
|
m_pending_tx.pop_back();
|
||||||
|
@ -41,7 +41,7 @@ class WalletImpl;
|
|||||||
class PendingTransactionImpl : public PendingTransaction
|
class PendingTransactionImpl : public PendingTransaction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PendingTransactionImpl(WalletImpl * wallet);
|
PendingTransactionImpl(WalletImpl &wallet);
|
||||||
~PendingTransactionImpl();
|
~PendingTransactionImpl();
|
||||||
int status() const;
|
int status() const;
|
||||||
std::string errorString() const;
|
std::string errorString() const;
|
||||||
@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend class WalletImpl;
|
friend class WalletImpl;
|
||||||
WalletImpl * m_wallet;
|
WalletImpl &m_wallet;
|
||||||
|
|
||||||
int m_status;
|
int m_status;
|
||||||
std::string m_errorString;
|
std::string m_errorString;
|
||||||
|
Loading…
Reference in New Issue
Block a user