mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[poincare] Temporary fix of setParentRecursively
Change-Id: I7ebacb1d531dac17da43fa3c8cd0ed98af8c365e
This commit is contained in:
@@ -153,6 +153,10 @@ template<typename T> T Expression::epsilon() {
|
||||
}
|
||||
|
||||
void Expression::recursivelySetAsParentOfChildren() {
|
||||
if (this->type() == Type::Complex) {
|
||||
// TODO: this case should be useless once complex is a leaf expression!
|
||||
return;
|
||||
}
|
||||
for (int i=0; i<numberOfOperands(); i++) {
|
||||
Expression * child = const_cast<Expression *>(operand(i));
|
||||
child->setParent(this);
|
||||
|
||||
Reference in New Issue
Block a user