summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-18 14:13:43 +0200
committerEike Rathke <erack@redhat.com>2017-05-18 15:02:50 +0200
commit730622df7c0e97917c3c0d53b1ec03691d0afb74 (patch)
tree27efb8cf6577f0352f9efcc21f0a8cb2c71604d2 /sc
parent9b51d16771175b1245f755d28877fd61a0b432a1 (diff)
assert instead of OSL_ENSURE if grammar is GRAM_UNSPECIFIED
Change-Id: Ie23a5a98e9bc6dfbd5d685c482fb358ac3822845
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx2
1 files changed, 1 insertions, 1 deletions
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