Assert supported FormulaGrammar instead of OSL_ENSURE

Change-Id: I80e1c55dbc66d1dcba004aac5cb5759a41bda680
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112860
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
Eike Rathke 2021-03-22 01:17:45 +01:00
parent 9af9d3da37
commit b82d677b3e

View file

@ -2025,8 +2025,7 @@ void ScCompiler::SetRefConvention( const ScCompiler::Convention *pConvP )
{ {
pConv = pConvP; pConv = pConvP;
meGrammar = FormulaGrammar::mergeToGrammar( meGrammar, pConv->meConv); meGrammar = FormulaGrammar::mergeToGrammar( meGrammar, pConv->meConv);
OSL_ENSURE( FormulaGrammar::isSupported( meGrammar), assert( FormulaGrammar::isSupported( meGrammar));
"ScCompiler::SetRefConvention: unsupported grammar resulting");
} }
void ScCompiler::SetError(FormulaError nError) void ScCompiler::SetError(FormulaError nError)