summaryrefslogtreecommitdiff
path: root/starmath/source/parse.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-03-02 16:09:49 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-03-03 01:50:59 +0000
commitdabcb80966a25b9f092d7ffd4feef0e7e4a2caab (patch)
treeb6a6f0f653eca6ed2ce7ccd531aa6605a31eb82a /starmath/source/parse.cxx
parentcedac0b9b0e4e10ad6ca468a804855c35fd52477 (diff)
starmath: Replace SmParseError::FuncExpected with assertion
Change-Id: I7d1089fd615ac09a6e59c06c094f79364510b290 Reviewed-on: https://gerrit.libreoffice.org/34800 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r--starmath/source/parse.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 0d3845936bf9..4bb9ff79be08 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2097,7 +2097,7 @@ void SmParser::DoFunction()
break;
default:
- Error(SmParseError::FuncExpected);
+ assert(false);
}
}
@@ -2345,7 +2345,6 @@ void SmParser::AddError(SmParseError Type, SmNode *pNode)
case SmParseError::RgroupExpected: nRID = RID_ERR_RGROUPEXPECTED; break;
case SmParseError::LbraceExpected: nRID = RID_ERR_LBRACEEXPECTED; break;
case SmParseError::RbraceExpected: nRID = RID_ERR_RBRACEEXPECTED; break;
- case SmParseError::FuncExpected: nRID = RID_ERR_FUNCEXPECTED; break;
case SmParseError::PoundExpected: nRID = RID_ERR_POUNDEXPECTED; break;
case SmParseError::ColorExpected: nRID = RID_ERR_COLOREXPECTED; break;
case SmParseError::RightExpected: nRID = RID_ERR_RIGHTEXPECTED; break;