diff options
author | Eike Rathke <erack@redhat.com> | 2021-03-22 01:29:46 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-06-02 19:50:22 +0200 |
commit | b9aefcb99c9be0530856d1e4139ccc96d71fa5b9 (patch) | |
tree | b41a49048616b8df3379d9cdf73a19e4d44654f7 /formula/source | |
parent | ff53b249885d788fa0539a0f7d5a9879d031d2ee (diff) |
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 <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/grammar.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <formula/grammar.hxx> #include <tools/debug.hxx> +#include <cassert> 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; } |