diff options
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 72b8661e5207..1633090972d0 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -124,12 +124,8 @@ static int OperatorCompare( const void *pFirst, const void *pSecond) int nRet = 0; if( CALC_NAME == static_cast<const CalcOp*>(pFirst)->eOp ) { - if( CALC_NAME == static_cast<const CalcOp*>(pSecond)->eOp ) - nRet = static_cast<const CalcOp*>(pFirst)->aName.compareTo( - static_cast<const CalcOp*>(pSecond)->aName ); - else - nRet = static_cast<const CalcOp*>(pFirst)->aName.compareTo( - static_cast<const CalcOp*>(pSecond)->aName ); + nRet = static_cast<const CalcOp*>(pFirst)->aName.compareTo( + static_cast<const CalcOp*>(pSecond)->aName ); } else { |