[poincare] Fix opposite

This commit is contained in:
Léa Saviot
2018-08-31 10:30:11 +02:00
parent b5572c2860
commit 6bcffd5bb2
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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 */