[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source
Eike Rathke
erack at redhat.com
Thu May 18 13:23:55 UTC 2017
sc/source/core/tool/compiler.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 13238b860f546afd750db561cd0292ed6869744e
Author: Eike Rathke <erack at redhat.com>
Date: Thu May 18 14:13:43 2017 +0200
assert instead of OSL_ENSURE if grammar is GRAM_UNSPECIFIED
Change-Id: Ie23a5a98e9bc6dfbd5d685c482fb358ac3822845
(cherry picked from commit 730622df7c0e97917c3c0d53b1ec03691d0afb74)
Reviewed-on: https://gerrit.libreoffice.org/37766
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index a95f2da5698c..d6f171e7c621 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -195,7 +195,7 @@ void ScCompiler::InitCharClassEnglish()
void ScCompiler::SetGrammar( const FormulaGrammar::Grammar eGrammar )
{
- OSL_ENSURE( eGrammar != FormulaGrammar::GRAM_UNSPECIFIED, "ScCompiler::SetGrammar: don't pass FormulaGrammar::GRAM_UNSPECIFIED");
+ assert( eGrammar != FormulaGrammar::GRAM_UNSPECIFIED && "ScCompiler::SetGrammar: don't pass FormulaGrammar::GRAM_UNSPECIFIED");
if (eGrammar == GetGrammar())
return; // nothing to be done
More information about the Libreoffice-commits
mailing list