summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-03-21 17:31:14 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-03-22 01:34:45 +0000
commitbdf41d8aeb53a298780f3633a76d71598a695bab (patch)
tree1ddce5285b8e4eedd3f1fbf75691f77f8291e361 /starmath/inc
parentd0740605fcd6f2f65f78f1ac8a05bd641edc6a76 (diff)
starmath: Make DoSubSup() return SmNode by taking another node
as an argument, not from the top of the stack. Because no token belongs to groups TG::Limit and TG::Power at the same time, we can replace TokenInGroup() with direct comparison with each group. Change-Id: I44882ab40f59c4de1c0e2cbbdc354e43de926ab1 Reviewed-on: https://gerrit.libreoffice.org/35500 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/parse.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index b4dc0a133206..1b96c159ed70 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -67,14 +67,14 @@ class SmParser
void DoRelation();
void DoSum();
void DoProduct();
- void DoSubSup(TG nActiveGroup);
+ SmNode *DoSubSup(TG nActiveGroup, SmNode *pGivenNode);
void DoOpSubSup();
void DoPower();
SmBlankNode *DoBlank();
SmNode *DoTerm(bool bGroupNumberIdent);
SmNode *DoEscape();
SmOperNode *DoOperator();
- void DoOper();
+ SmNode *DoOper();
SmStructureNode *DoUnOper();
void DoAlign();
SmStructureNode *DoFontAttribut();