sc/source/filter/xml/xmlcelli.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 0e05add86cfb996fe6a11c088c36b3fa010e2445
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Fri Oct 18 22:36:11 2024 +0200
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Thu Oct 31 02:05:59 2024 +0100

    tdf#163486: PVS: The variable was assign the same value.
    
    V1048 The 'bDoIncrement' variable was assigned the same value.
    
    Change-Id: Id5fd249b94429c80898e8ab1553ef32066313d1c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175204
    Reviewed-by: David Gilbert <freedesk...@treblig.org>
    Tested-by: Jenkins

diff --git a/sc/source/filter/xml/xmlcelli.cxx 
b/sc/source/filter/xml/xmlcelli.cxx
index 911586eb2683..1b9671fabd2f 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1091,7 +1091,6 @@ void ScXMLTableRowCellContext::PutTextCell( const 
ScAddress& rCurrentPos,
         if (maStringValue)
         {
             rDoc.setStringCell(rCurrentPos, *maStringValue);
-            bDoIncrement = true;
         }
         else if (mbEditEngineHasText)
         {
@@ -1114,12 +1113,10 @@ void ScXMLTableRowCellContext::PutTextCell( const 
ScAddress& rCurrentPos,
                 // is a prerequisite for using this constructor of ScEditCell.
                 rDoc.setEditCell(rCurrentPos, 
mpEditEngine->CreateTextObject());
             }
-            bDoIncrement = true;
         }
         else if ( nCurrentCol > 0 && pOUText && !pOUText->isEmpty() )
         {
             rDoc.setStringCell(rCurrentPos, *pOUText);
-            bDoIncrement = true;
         }
         else
             bDoIncrement = false;

Reply via email to