[Libreoffice-commits] core.git: formula/source

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 2 17:51:06 UTC 2021


 formula/source/core/api/grammar.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b9aefcb99c9be0530856d1e4139ccc96d71fa5b9
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Mon Mar 22 01:29:46 2021 +0100
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Wed Jun 2 19:50:22 2021 +0200

    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 at redhat.com>
    Tested-by: Jenkins

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;
 }
 


More information about the Libreoffice-commits mailing list