[poincare/expression] Mark nbChildren variable as const in deepBeautify

This commit is contained in:
Ruben Dashyan
2019-11-07 15:35:41 +01:00
committed by Léa Saviot
parent 6ff28bf5ea
commit 5d1cc521f4

View File

@@ -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);