summaryrefslogtreecommitdiff
path: root/starmath/source/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r--starmath/source/parse.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 1e11be32fa91..7a6c99551e68 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2138,11 +2138,9 @@ void SmParser::DoBinom()
DoSum();
DoSum();
- SmNodeArray ExpressionArray(2);
- ExpressionArray[1] = popOrZero(m_aNodeStack);
- ExpressionArray[0] = popOrZero(m_aNodeStack);
-
- pSNode->SetSubNodes(ExpressionArray);
+ SmNode *pSecond = popOrZero(m_aNodeStack);
+ SmNode *pFirst = popOrZero(m_aNodeStack);
+ pSNode->SetSubNodes(pFirst, pSecond);
m_aNodeStack.push_front(std::move(pSNode));
}