mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare/expression] Mark nbChildren variable as const in deepBeautify
This commit is contained in:
committed by
Léa Saviot
parent
6ff28bf5ea
commit
5d1cc521f4
@@ -737,7 +737,7 @@ Expression Expression::deepReduce(ExpressionNode::ReductionContext reductionCont
|
||||
|
||||
Expression Expression::deepBeautify(ExpressionNode::ReductionContext reductionContext) {
|
||||
Expression e = shallowBeautify(reductionContext);
|
||||
int nbChildren = e.numberOfChildren();
|
||||
const int nbChildren = e.numberOfChildren();
|
||||
for (int i = 0; i < nbChildren; i++) {
|
||||
Expression child = e.childAtIndex(i);
|
||||
child = child.deepBeautify(reductionContext);
|
||||
|
||||
Reference in New Issue
Block a user