mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-30 20:23:58 +01:00
merge() functions are virtual to enable polymorphism
This commit is contained in:
@@ -102,7 +102,7 @@ namespace monero {
|
||||
return !(*getIsIncoming());
|
||||
}
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
void merge(const shared_ptr<MoneroTransfer>& self, const shared_ptr<MoneroTransfer>& other);
|
||||
virtual void merge(const shared_ptr<MoneroTransfer>& self, const shared_ptr<MoneroTransfer>& other);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -161,7 +161,6 @@ namespace monero {
|
||||
boost::optional<bool> isFrozen;
|
||||
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
void merge(const shared_ptr<MoneroOutputWallet>& self, const shared_ptr<MoneroOutputWallet>& other);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -189,6 +188,7 @@ namespace monero {
|
||||
bool getIsIncoming() const;
|
||||
bool getIsOutgoing() const;
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
void merge(const shared_ptr<MoneroTx>& self, const shared_ptr<MoneroTx>& other);
|
||||
void merge(const shared_ptr<MoneroTxWallet>& self, const shared_ptr<MoneroTxWallet>& other);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user