summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-05 16:43:45 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-05 21:36:39 +0200
commit42794558768d4beb0321271457f675976970241f (patch)
tree82d76379252a7a7727b2288e3a14ff9f5f532c2c /sw/source
parent8c49dab215ed012fea195ea71cea079ddaa97ba3 (diff)
cid#1596834 Identical code for different branches
which has become detectable since: commit 7d070fa5e4b055501cc59d3ea1b4e049db4bd4ae Date: Thu May 2 14:51:24 2024 +0200 replace createFromAscii with OUString literals in SwCalc Change-Id: I589a3db5c0377f1b676daee714ff2ada4ea28179 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167160 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/bastyp/calc.cxx8
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
{