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

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 23 10:43:09 UTC 2021


 sc/source/core/tool/compiler.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit b82d677b3e30a28d084d3d4f8c039949905fd5fa
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Mon Mar 22 01:17:45 2021 +0100
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Tue Mar 23 11:42:25 2021 +0100

    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 at redhat.com>

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)


More information about the Libreoffice-commits mailing list