all copy implementations call copy constructor with *this;

ready to implement copy constructors
This commit is contained in:
woodser
2019-07-29 13:45:42 -04:00
parent b0677b7aad
commit e3be3228c0
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -184,7 +184,7 @@ namespace monero {
}
shared_ptr<MoneroTx> MoneroTx::copy() const {
return make_shared<MoneroTx>();
return make_shared<MoneroTx>(*this);
}
boost::property_tree::ptree MoneroTx::toPropertyTree() const {
@@ -387,7 +387,7 @@ namespace monero {
}
shared_ptr<MoneroOutput> MoneroOutput::copy() const {
return make_shared<MoneroOutput>();
return make_shared<MoneroOutput>(*this);
}
boost::property_tree::ptree MoneroOutput::toPropertyTree() const {
+3 -3
View File
@@ -170,7 +170,7 @@ namespace monero {
}
shared_ptr<MoneroTxRequest> MoneroTxRequest::copy() const {
return make_shared<MoneroTxRequest>();
return make_shared<MoneroTxRequest>(*this);
}
boost::property_tree::ptree MoneroTxRequest::toPropertyTree() const {
@@ -475,7 +475,7 @@ namespace monero {
}
shared_ptr<MoneroOutputWallet> MoneroOutputWallet::copy() const {
return make_shared<MoneroOutputWallet>();
return make_shared<MoneroOutputWallet>(*this);
}
boost::property_tree::ptree MoneroOutputWallet::toPropertyTree() const {
@@ -507,7 +507,7 @@ namespace monero {
}
shared_ptr<MoneroOutputRequest> MoneroOutputRequest::copy() const {
return make_shared<MoneroOutputRequest>();
return make_shared<MoneroOutputRequest>(*this);
}
boost::property_tree::ptree MoneroOutputRequest::toPropertyTree() const {