mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[poincare] Proper TreeByValue constructor and copy operators
This commit is contained in:
@@ -5,11 +5,11 @@ namespace Poincare {
|
||||
/* Constructors */
|
||||
|
||||
TreeByValue::TreeByValue(const TreeByValue & tr) :
|
||||
TreeByValue(clone()) {}
|
||||
TreeByValue(tr.clone()) {}
|
||||
|
||||
/* Operators */
|
||||
TreeByValue& TreeByValue::operator=(const TreeByValue& tr) {
|
||||
TreeByReference t = clone();
|
||||
TreeByReference t = tr.clone();
|
||||
m_identifier = t.identifier();
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user