[poincare/expression] getUnit returns an uninitialized Expression

when there is no Unit instead of Undefined
This commit is contained in:
Ruben Dashyan
2020-03-17 10:17:42 +01:00
committed by Émilie Feral
parent f5b964339c
commit 0c4434d088
6 changed files with 11 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ bool ExpressionNode::isOfType(Type * types, int length) const {
}
Expression ExpressionNode::getUnit() const {
return Undefined::Builder();
return Expression();
}
void ExpressionNode::setChildrenInPlace(Expression other) {