Kaydet (Commit) 730622df authored tarafından Eike Rathke's avatar Eike Rathke

assert instead of OSL_ENSURE if grammar is GRAM_UNSPECIFIED

Change-Id: Ie23a5a98e9bc6dfbd5d685c482fb358ac3822845
üst 9b51d167
......@@ -195,7 +195,7 @@ void ScCompiler::InitCharClassEnglish()
void ScCompiler::SetGrammar( const FormulaGrammar::Grammar eGrammar )
{
OSL_ENSURE( eGrammar != FormulaGrammar::GRAM_UNSPECIFIED, "ScCompiler::SetGrammar: don't pass FormulaGrammar::GRAM_UNSPECIFIED");
assert( eGrammar != FormulaGrammar::GRAM_UNSPECIFIED && "ScCompiler::SetGrammar: don't pass FormulaGrammar::GRAM_UNSPECIFIED");
if (eGrammar == GetGrammar())
return; // nothing to be done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment