Kaydet (Commit) 2f2ee162 authored tarafından Eike Rathke's avatar Eike Rathke

Revert "get rid of unnecessary warning"

This reverts commit e5321437.

OpCode 0 (ocPush) was deliberately included in the assertion as it is
never a mapping to a function or operator name.
üst 19fd14a8
...@@ -488,8 +488,8 @@ uno::Sequence< sheet::FormulaOpCodeMapEntry > FormulaCompiler::OpCodeMap::create ...@@ -488,8 +488,8 @@ uno::Sequence< sheet::FormulaOpCodeMapEntry > FormulaCompiler::OpCodeMap::create
void FormulaCompiler::OpCodeMap::putOpCode( const String & rStr, const OpCode eOp ) void FormulaCompiler::OpCodeMap::putOpCode( const String & rStr, const OpCode eOp )
{ {
DBG_ASSERT( sal_uInt16(eOp) < mnSymbols, "OpCodeMap::putOpCode: OpCode out of range"); DBG_ASSERT( 0 < eOp && sal_uInt16(eOp) < mnSymbols, "OpCodeMap::putOpCode: OpCode out of range");
if (sal_uInt16(eOp) < mnSymbols) if (0 < eOp && sal_uInt16(eOp) < mnSymbols)
{ {
DBG_ASSERT( (mpTable[eOp].Len() == 0) || (mpTable[eOp] == rStr) || DBG_ASSERT( (mpTable[eOp].Len() == 0) || (mpTable[eOp] == rStr) ||
(eOp == ocCurrency) || (eOp == ocSep) || (eOp == ocArrayColSep) || (eOp == ocCurrency) || (eOp == ocSep) || (eOp == ocArrayColSep) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment