[poincare] Fix Product constructor

This commit is contained in:
Émilie Feral
2018-10-29 15:49:20 +01:00
parent 80c1fe627c
commit 2709aacb4e

View File

@@ -34,11 +34,11 @@ friend class ProductNode;
public:
Product();
Product(const ProductNode * n) : Expression(n) {}
Product(Expression operand0, Expression operand1, Expression operand2, Expression op) : Product() {
Product(Expression operand0, Expression operand1, Expression operand2, Expression operand3) : Product() {
replaceChildAtIndexInPlace(0, operand0);
replaceChildAtIndexInPlace(1, operand1);
replaceChildAtIndexInPlace(2, operand2);
replaceChildAtIndexInPlace(3, operand2);
replaceChildAtIndexInPlace(3, operand3);
}
};