Revert "[poincare] Rename addChildTreeAtIndex -> addChildAtIndex"

This reverts commit afd01f34e1.
This commit is contained in:
Léa Saviot
2018-08-03 16:02:56 +02:00
parent f28e029bb4
commit 7931d9ebfa
39 changed files with 106 additions and 106 deletions

View File

@@ -23,7 +23,7 @@ ExpressionReference ExpressionNode::replaceSymbolWithExpression(char symbol, Exp
for (int i = 0; i < nbChildren; i++) {
ExpressionReference newChild = reference.childAtIndex(i).node()->replaceSymbolWithExpression(symbol, expression);
if (reference.numberOfChildren() < nbChildren) {
reference.addChildAtIndex(newChild, i, nbChildren - 1);
reference.addChildTreeAtIndex(newChild, i, nbChildren - 1);
} else {
reference.replaceTreeChildAtIndex(i, newChild);
}