diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-03-02 16:09:49 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-03-03 01:50:59 +0000 |
commit | dabcb80966a25b9f092d7ffd4feef0e7e4a2caab (patch) | |
tree | b6a6f0f653eca6ed2ce7ccd531aa6605a31eb82a /starmath/source/parse.cxx | |
parent | cedac0b9b0e4e10ad6ca468a804855c35fd52477 (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.cxx | 3 |
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; |