From e3be3228c0da602d6d35090a61b7ef7bfa6ada0f Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 29 Jul 2019 13:45:42 -0400 Subject: [PATCH] all copy implementations call copy constructor with *this; ready to implement copy constructors --- src/daemon/MoneroDaemonModel.cpp | 4 ++-- src/wallet/MoneroWalletModel.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/daemon/MoneroDaemonModel.cpp b/src/daemon/MoneroDaemonModel.cpp index fa40a9c..b44a91c 100644 --- a/src/daemon/MoneroDaemonModel.cpp +++ b/src/daemon/MoneroDaemonModel.cpp @@ -184,7 +184,7 @@ namespace monero { } shared_ptr MoneroTx::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroTx::toPropertyTree() const { @@ -387,7 +387,7 @@ namespace monero { } shared_ptr MoneroOutput::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutput::toPropertyTree() const { diff --git a/src/wallet/MoneroWalletModel.cpp b/src/wallet/MoneroWalletModel.cpp index 1cb4857..9602aa0 100644 --- a/src/wallet/MoneroWalletModel.cpp +++ b/src/wallet/MoneroWalletModel.cpp @@ -170,7 +170,7 @@ namespace monero { } shared_ptr MoneroTxRequest::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroTxRequest::toPropertyTree() const { @@ -475,7 +475,7 @@ namespace monero { } shared_ptr MoneroOutputWallet::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutputWallet::toPropertyTree() const { @@ -507,7 +507,7 @@ namespace monero { } shared_ptr MoneroOutputRequest::copy() const { - return make_shared(); + return make_shared(*this); } boost::property_tree::ptree MoneroOutputRequest::toPropertyTree() const {