From dabcb80966a25b9f092d7ffd4feef0e7e4a2caab Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Thu, 2 Mar 2017 16:09:49 +0900 Subject: starmath: Replace SmParseError::FuncExpected with assertion Change-Id: I7d1089fd615ac09a6e59c06c094f79364510b290 Reviewed-on: https://gerrit.libreoffice.org/34800 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/source/parse.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'starmath/source/parse.cxx') 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; -- cgit