sw/source/core/doc/docnum.cxx    |    3 ++-
 sw/source/core/docnode/nodes.cxx |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit a7f6d0b6990517a6fcbde7909eb5306a51d31af9
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Oct 24 16:35:21 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Oct 24 18:30:08 2021 +0200

    cid#1493242 silence Copy-paste error
    
    Change-Id: Id95cab7b70a9f97dadadb8d0cff64674ec3711b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124119
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 846277bbde98..34bc1474d734 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -1953,7 +1953,8 @@ bool SwDoc::MoveParagraphImpl(SwPaM& rPam, SwNodeOffset 
const nOffset,
         // the moved section, too.
         pTmp1 = GetNodes()[ nStIdx ];
         if( pTmp1->IsStartNode() )
-        {   // First is a start node
+        {
+            // coverity[copy_paste_error : FALSE] - First is a start node
             pTmp2 = pTmp1->EndOfSectionNode();
             if( pTmp2->GetIndex() > nEndIdx )
                 return false; // Its end node is behind the moved range
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 97e229d8e232..08e6de501918 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -2272,7 +2272,7 @@ void SwNodes::RemoveNode( SwNodeOffset nDelPos, 
SwNodeOffset nSz, bool bDel )
         while( nCnt-- )
         {
             delete pDel;
-            // coverity[use_after_free] - pPrev will be reassigned if there 
will be another iteration to the loop
+            // coverity[use_after_free : FALSE] - pPrev will be reassigned if 
there will be another iteration to the loop
             pDel = pPrev;
             sal_uLong nPrevNdIdx = pPrev->GetPos();
             BigPtrEntry* pTempEntry = &aTempEntries[sal_Int32(nCnt)];

Reply via email to