diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-01 19:07:44 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-02 15:04:37 +0100 |
commit | 65c053ca1a5a8c7318ab1e42cdde2d540a283673 (patch) | |
tree | 2e1a29f5d832ff0cb0d4c095f038392b472459d1 /formula/source | |
parent | 40afe52c92f340d0fedbb59d1071a542e6fb61e3 (diff) |
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 2 | ||||
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 0dd3389dc231..bb464d519453 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1649,7 +1649,7 @@ FormulaToken* FormulaCompiler::CreateStringFromToken( rtl::OUStringBuffer& rBuff case svSep: break; // Opcodes default: - DBG_ERROR("FormulaCompiler:: GetStringFromToken errUnknownVariable"); + OSL_FAIL("FormulaCompiler:: GetStringFromToken errUnknownVariable"); } // of switch } } diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 6ee042c43196..5fe52957c8b7 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -872,7 +872,7 @@ BOOL FormulaTokenArray::HasMatrixDoubleRefOps() sp = sal::static_int_cast<short>( sp - nParams ); if ( sp < 0 ) { - DBG_ERROR( "FormulaTokenArray::HasMatrixDoubleRefOps: sp < 0" ); + OSL_FAIL( "FormulaTokenArray::HasMatrixDoubleRefOps: sp < 0" ); sp = 0; } pStack[sp++] = pResult; diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index d52217be5e18..05a0e78768ee 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -581,7 +581,7 @@ xub_StrLen FormulaDlg_Impl::GetFunctionPos(xub_StrLen nPos) } catch(const uno::Exception& ) { - DBG_ERROR("Exception caught!"); + OSL_FAIL("Exception caught!"); } } @@ -971,7 +971,7 @@ String FormulaDlg_Impl::RepairFormula(const String& aFormula) } catch(const uno::Exception& ) { - DBG_ERROR("Exception caught!"); + OSL_FAIL("Exception caught!"); } return aResult; } |