mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[poincare] Make methods returning an expression copy const
This commit is contained in:
@@ -10,7 +10,7 @@ ExpressionNode * ExpressionNode::FailedAllocationStaticNode() {
|
||||
return &FailureNode;
|
||||
}
|
||||
|
||||
Expression ExpressionNode::replaceSymbolWithExpression(char symbol, Expression expression) {
|
||||
Expression ExpressionNode::replaceSymbolWithExpression(char symbol, Expression expression) const {
|
||||
Expression e = Expression(this);
|
||||
int nbChildren = e.numberOfChildren();
|
||||
for (int i = 0; i < nbChildren; i++) {
|
||||
@@ -20,7 +20,7 @@ Expression ExpressionNode::replaceSymbolWithExpression(char symbol, Expression e
|
||||
return e;
|
||||
}
|
||||
|
||||
Expression ExpressionNode::setSign(Sign s, Context & context, Preferences::AngleUnit angleUnit) {
|
||||
Expression ExpressionNode::setSign(Sign s, Context & context, Preferences::AngleUnit angleUnit) const {
|
||||
assert(false);
|
||||
return Expression(nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user