sw/source/core/docnode/nodes.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit c45ec648dc4cbb28643b4d80ad3361eea7234d6c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Nov 10 17:23:01 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Nov 10 20:40:42 2021 +0100

    just call erase directly rather than look up index and delete via index
    
    Change-Id: I93f7f43098544ba23a31a985e5b3c07286d8bc1f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125008
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 08e6de501918..5942ddb65569 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -1365,12 +1365,8 @@ void SwNodes::DelNodes( const SwNodeIndex & rStart, 
SwNodeOffset nCnt )
             if (pNd->IsTextNode() && pNd->GetTextNode()->IsOutline())
             {
                 // remove the outline indices
-                SwOutlineNodes::size_type nIdxPos;
-                if( m_pOutlineNodes->Seek_Entry( pNd, &nIdxPos ))
-                {
-                    m_pOutlineNodes->erase_at(nIdxPos);
+                if (m_pOutlineNodes->erase(pNd))
                     bUpdateNum = 1;
-                }
             }
             if( pNd->IsContentNode() )
             {

Reply via email to