[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 10:35:51 UTC 2018


 sw/source/core/doc/swserv.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 9c56e63c434be69d94a81078b7d5491a5775c8e0
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Nov 28 12:34:27 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Nov 28 12:34:27 2018 +0200

    -Werror=unused-but-set-variable
    
    after
            commit 19c56b3befae3a23f42f981de5057de380b4c5a0
        loplugin:unusedfields in sw
    
    Change-Id: I67314e86695a399fd211a64bdcf4cc3f18ca133d

diff --git a/sw/source/core/doc/swserv.cxx b/sw/source/core/doc/swserv.cxx
index f1c1338c9d3b..2428babd9019 100644
--- a/sw/source/core/doc/swserv.cxx
+++ b/sw/source/core/doc/swserv.cxx
@@ -183,8 +183,6 @@ void SwServerObject::SendDataChanged( const SwPaM& rRange )
 bool SwServerObject::IsLinkInServer( const SwBaseLink* pChkLnk ) const
 {
     sal_uLong nSttNd = 0, nEndNd = 0;
-    sal_Int32 nStt = 0;
-    sal_Int32 nEnd = 0;
     const SwNode* pNd = nullptr;
     const SwNodes* pNds = nullptr;
 
@@ -197,9 +195,7 @@ bool SwServerObject::IsLinkInServer( const SwBaseLink* pChkLnk ) const
                             * pEnd = &CNTNT_TYPE.pBkmk->GetMarkEnd();
 
             nSttNd = pStt->nNode.GetIndex();
-            nStt = pStt->nContent.GetIndex();
             nEndNd = pEnd->nNode.GetIndex();
-            nEnd = pEnd->nContent.GetIndex();
             pNds = &pStt->nNode.GetNodes();
         }
         break;
@@ -215,8 +211,6 @@ bool SwServerObject::IsLinkInServer( const SwBaseLink* pChkLnk ) const
     {
         nSttNd = pNd->GetIndex();
         nEndNd = pNd->EndOfSectionIndex();
-        nStt = 0;
-        nEnd = -1;
         pNds = &pNd->GetNodes();
     }
 


More information about the Libreoffice-commits mailing list