diff --git a/poincare/include/poincare/opposite.h b/poincare/include/poincare/opposite.h index 7cdd716db..54a412935 100644 --- a/poincare/include/poincare/opposite.h +++ b/poincare/include/poincare/opposite.h @@ -44,7 +44,7 @@ public: int serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode = Preferences::PrintFloatMode::Decimal, int numberOfSignificantDigits = 0) const override; // Simplification - Expression shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent = Expression()) override; + Expression shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent) override; }; class Opposite : public Expression { diff --git a/poincare/src/opposite.cpp b/poincare/src/opposite.cpp index b443a3092..84028be6c 100644 --- a/poincare/src/opposite.cpp +++ b/poincare/src/opposite.cpp @@ -63,8 +63,8 @@ int OppositeNode::serialize(char * buffer, int bufferSize, Preferences::PrintFlo return numberOfChar; } -Expression OppositeNode::shallowReduce(Context& context, Preferences::AngleUnit angleUnit) { - return Opposite(this).shallowReduce(context, angleUnit); +Expression OppositeNode::shallowReduce(Context& context, Preferences::AngleUnit angleUnit, const Expression futureParent) { + return Opposite(this).shallowReduce(context, angleUnit, futureParent); } /* Simplification */