sc/source/core/tool/scmatrix.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a46e5dcf7d8e814d66eeee039f6d06e96b21ac14
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Apr 21 14:29:20 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Apr 21 20:06:35 2025 +0200

    cid#1646578 Logically dead code
    
    Change-Id: I590d2cf930421de0319dfb705af5b80f793a524a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184408
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 337281f520e9..90782fc5d5d1 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -2215,7 +2215,7 @@ void ScMatrixImpl::IfJump( ScJumpMatrix& rJumpMatrix, 
const short* pJump, short
                     // empty result.
                     bIsValue = false;
                     bTrue = false;
-                    fVal = (bIsValue ? 0.0 : CreateDoubleError( 
FormulaError::NoValue));
+                    fVal = CreateDoubleError(FormulaError::NoValue);
                 break;
                 case mdds::mtm::element_empty:
                     // Treat empty and empty path as 0, but string
@@ -2224,7 +2224,7 @@ void ScMatrixImpl::IfJump( ScJumpMatrix& rJumpMatrix, 
const short* pJump, short
                     // empty result.
                     bIsValue = true;
                     bTrue = false;
-                    fVal = (bIsValue ? 0.0 : CreateDoubleError( 
FormulaError::NoValue));
+                    fVal = 0.0;
                 break;
                 default:
                     assert(false);

Reply via email to