From 5d1cc521f4ac9e77e6416263c47f65a4d397aaf4 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Thu, 7 Nov 2019 15:35:41 +0100 Subject: [PATCH] [poincare/expression] Mark nbChildren variable as const in deepBeautify --- poincare/src/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/src/expression.cpp b/poincare/src/expression.cpp index 23bca3ef0..897e013fd 100644 --- a/poincare/src/expression.cpp +++ b/poincare/src/expression.cpp @@ -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);