summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorWinfried Donkers <winfrieddonkers@libreoffice.org>2013-08-22 17:03:58 +0200
committerThorsten Behrens <tbehrens@suse.com>2013-08-27 13:48:01 +0000
commite5321437322fd812b93fee266af309e782479488 (patch)
treececfa092983a2f24244459aeba87042d76118e87 /formula
parent68dea1c1b61a99cdef556ba7d8ccfdad1be8a663 (diff)
get rid of unnecessary warning
A value of 0 for Opcode eOp produces a debug assertion that is not in place as opcode with value does exist (ocPush, SC_OPCODE_PUSH). Change-Id: If529cc2ecd8d4d3a5e31f084dfa72e13c9c0fe37 Reviewed-on: https://gerrit.libreoffice.org/5586 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 4cb1164b72d4..d9861cf9a9d2 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -488,8 +488,8 @@ uno::Sequence< sheet::FormulaOpCodeMapEntry > FormulaCompiler::OpCodeMap::create
void FormulaCompiler::OpCodeMap::putOpCode( const String & rStr, const OpCode eOp )
{
- DBG_ASSERT( 0 < eOp && sal_uInt16(eOp) < mnSymbols, "OpCodeMap::putOpCode: OpCode out of range");
- if (0 < eOp && sal_uInt16(eOp) < mnSymbols)
+ DBG_ASSERT( sal_uInt16(eOp) < mnSymbols, "OpCodeMap::putOpCode: OpCode out of range");
+ if (sal_uInt16(eOp) < mnSymbols)
{
DBG_ASSERT( (mpTable[eOp].Len() == 0) || (mpTable[eOp] == rStr) ||
(eOp == ocCurrency) || (eOp == ocSep) || (eOp == ocArrayColSep) ||