mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 15:51:34 +02:00
all copy implementations call copy constructor with *this;
ready to implement copy constructors
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user