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 {