summaryrefslogtreecommitdiff
path: root/sc/source/core/tool
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-03-22 01:17:45 +0100
committerEike Rathke <erack@redhat.com>2021-03-23 11:42:25 +0100
commitb82d677b3e30a28d084d3d4f8c039949905fd5fa (patch)
tree763b099dcd8bd71d371cf4ff6a675511344a5da2 /sc/source/core/tool
parent9af9d3da370e92db12ebd68d4ce7797e92d0c890 (diff)
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>
Diffstat (limited to 'sc/source/core/tool')
-rw-r--r--sc/source/core/tool/compiler.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 5ed09abc0b73..250e816a2e5e 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2025,8 +2025,7 @@ void ScCompiler::SetRefConvention( const ScCompiler::Convention *pConvP )
{
pConv = pConvP;
meGrammar = FormulaGrammar::mergeToGrammar( meGrammar, pConv->meConv);
- OSL_ENSURE( FormulaGrammar::isSupported( meGrammar),
- "ScCompiler::SetRefConvention: unsupported grammar resulting");
+ assert( FormulaGrammar::isSupported( meGrammar));
}
void ScCompiler::SetError(FormulaError nError)