mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare/symbol_abstract] No need to clone the expression for a Function
Already cloned in the global context.
This commit is contained in:
committed by
Léa Saviot
parent
fc392d4e81
commit
b728fb8a1b
@@ -125,7 +125,7 @@ Expression Function::shallowReduce(ExpressionNode::ReductionContext reductionCon
|
||||
}
|
||||
|
||||
Expression Function::deepReplaceReplaceableSymbols(Context * context, bool * didReplace) {
|
||||
Expression e = context->expressionForSymbolAbstract(*this, true);
|
||||
Expression e = context->expressionForSymbolAbstract(*this, false);
|
||||
if (e.isUninitialized()) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user