sw/source/core/bastyp/calc.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 42794558768d4beb0321271457f675976970241f
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun May 5 16:43:45 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun May 5 21:36:39 2024 +0200

    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.mcnam...@collabora.com>

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
     {

Reply via email to