summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2014-11-17 10:09:46 +0900
committerCaolán McNamara <caolanm@redhat.com>2014-11-17 09:16:48 +0000
commite186db5257956a88ed5ed7a9db1867b44324252d (patch)
tree1d858dc4aade70cc55c98dc9987fe800a97df3c7 /starmath
parent394ba4a68b618fb8bd3e76886648c559d90b8ba4 (diff)
assert that no other types than TGOPER can happen in SmParser::Oper()
TOVERBRACE/TUNDERBRACE belongs to TGPRODUCT. Change-Id: I34b23858fb70f38ffd82e373e16ab68632d6e303 Reviewed-on: https://gerrit.libreoffice.org/12508 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 4b724b6afce4..4683c37c3029 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1655,11 +1655,6 @@ void SmParser::Oper()
}
break;
- case TOVERBRACE :
- case TUNDERBRACE :
- pNode = new SmMathSymbolNode(m_aCurToken);
- break;
-
case TOPER :
NextToken();
@@ -1668,7 +1663,7 @@ void SmParser::Oper()
break;
default :
- SAL_WARN("starmath", "unknown case");
+ assert(false && "unknown case");
}
m_aNodeStack.push(pNode);