diff options
author | Eike Rathke <erack@redhat.com> | 2014-08-22 19:49:58 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-08-22 19:50:52 +0200 |
commit | 234fba5b451394cba39adc623f8e303845790605 (patch) | |
tree | 62e64bc42e5c0b7635278f9b7c3b0be1a770e77d /formula | |
parent | 935147ce9c5a5aa3672b025ca9f51424c1a0740c (diff) |
convert OSL_FAIL to SAL_WARN
Change-Id: I001f29dca5f2a01d70115bb309c99c64c4a65efb
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 5f63fcf9928a..6c4f61765114 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1885,7 +1885,7 @@ FormulaToken* FormulaCompiler::CreateStringFromToken( OUStringBuffer& rBuffer, F case svSep: break; // Opcodes default: - OSL_FAIL("FormulaCompiler:: GetStringFromToken errUnknownVariable"); + SAL_WARN("formula.core", "FormulaCompiler::GetStringFromToken: unknown token type " << t->GetType()); } // of switch } } diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 227cd3da081b..95a3f24aaafb 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -922,7 +922,7 @@ bool FormulaTokenArray::HasMatrixDoubleRefOps() sp = sal::static_int_cast<short>( sp - nParams ); if ( sp < 0 ) { - OSL_FAIL( "FormulaTokenArray::HasMatrixDoubleRefOps: sp < 0" ); + SAL_WARN("formula.core", "FormulaTokenArray::HasMatrixDoubleRefOps: sp < 0" ); sp = 0; } pStack[sp++] = pResult; |