diff --git a/poincare/src/arc_cosine.cpp b/poincare/src/arc_cosine.cpp index d150f306e..8ed9234d8 100644 --- a/poincare/src/arc_cosine.cpp +++ b/poincare/src/arc_cosine.cpp @@ -36,9 +36,11 @@ Complex ArcCosineNode::computeOnComplex(const std::complex c, Preferences: } Expression ArcCosine::shallowReduce(Context & context, Preferences::AngleUnit angleUnit) { - Expression e = Expression::defaultShallowReduce(context, angleUnit); - if (e.isUndefinedOrAllocationFailure()) { - return e; + { + Expression e = Expression::defaultShallowReduce(context, angleUnit); + if (e.isUndefinedOrAllocationFailure()) { + return e; + } } #if MATRIX_EXACT_REDUCING if (childAtIndex(0).type() == Type::Matrix) { diff --git a/poincare/src/arc_sine.cpp b/poincare/src/arc_sine.cpp index cc07956d8..fee872a3d 100644 --- a/poincare/src/arc_sine.cpp +++ b/poincare/src/arc_sine.cpp @@ -36,9 +36,11 @@ Complex ArcSineNode::computeOnComplex(const std::complex c, Preferences::A } Expression ArcSine::shallowReduce(Context & context, Preferences::AngleUnit angleUnit) { - Expression e = Expression::defaultShallowReduce(context, angleUnit); - if (e.isUndefinedOrAllocationFailure()) { - return e; + { + Expression e = Expression::defaultShallowReduce(context, angleUnit); + if (e.isUndefinedOrAllocationFailure()) { + return e; + } } #if MATRIX_EXACT_REDUCING if (childAtIndex(0).type() == Type::Matrix) { diff --git a/poincare/src/arc_tangent.cpp b/poincare/src/arc_tangent.cpp index 1252f346a..6fc0c885b 100644 --- a/poincare/src/arc_tangent.cpp +++ b/poincare/src/arc_tangent.cpp @@ -36,9 +36,11 @@ Expression ArcTangentNode::shallowReduce(Context & context, Preferences::AngleUn } Expression ArcTangent::shallowReduce(Context & context, Preferences::AngleUnit angleUnit) { - Expression e = Expression::defaultShallowReduce(context, angleUnit); - if (e.isUndefinedOrAllocationFailure()) { - return e; + { + Expression e = Expression::defaultShallowReduce(context, angleUnit); + if (e.isUndefinedOrAllocationFailure()) { + return e; + } } #if MATRIX_EXACT_REDUCING if (childAtIndex(0).type() == ExpressionNode::Type::Matrix) {