From b9aefcb99c9be0530856d1e4139ccc96d71fa5b9 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 22 Mar 2021 01:29:46 +0100 Subject: Merging an unsupported formula grammar is worth a real assert() Change-Id: I9bce5bc590e3348d1fb0c81a9ec74cec2944d38a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116617 Reviewed-by: Eike Rathke Tested-by: Jenkins --- formula/source/core/api/grammar.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'formula/source') diff --git a/formula/source/core/api/grammar.cxx b/formula/source/core/api/grammar.cxx index cc2aec21088a..b43e5436093a 100644 --- a/formula/source/core/api/grammar.cxx +++ b/formula/source/core/api/grammar.cxx @@ -19,6 +19,7 @@ #include #include +#include namespace formula { @@ -78,7 +79,7 @@ FormulaGrammar::Grammar FormulaGrammar::mergeToGrammar( const Grammar eGrammar, extractFormulaLanguage( eGrammar) | ((eConv + kConventionOffset) << kConventionShift)); eGram = setEnglishBit( eGram, bEnglish); - DBG_ASSERT( isSupported( eGram), "CompilerGrammarMap::mergeToGrammar: unsupported grammar"); + assert( isSupported( eGram)); return eGram; } -- cgit