sw/source/core/docnode/node2lay.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a57ade9be3aa03634933e767eab5e8fb640760ca
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Mon Apr 8 07:52:38 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Mon Apr 8 09:50:20 2024 +0200

    -Werror,-Wunused-but-set-variable
    
    ...ever since the code got introduced in
    9dc6e2c9062725ef1f9d7e321cae5f4dbe8ca749 "sw: fix expansion of 
SetGetExpField in
    headers with split table rows"
    
    Change-Id: I44e8d375a47286b625ce9a7808484a32dc1f0aa6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165879
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/sw/source/core/docnode/node2lay.cxx 
b/sw/source/core/docnode/node2lay.cxx
index 607ebada8ef4..312ce2dff440 100644
--- a/sw/source/core/docnode/node2lay.cxx
+++ b/sw/source/core/docnode/node2lay.cxx
@@ -146,7 +146,7 @@ SwFrame const* FindNeighbourFrameForNode(SwNode const& 
rNode)
 {
     SwNodeIndex idx(rNode);
     SwFlowFrame const* pFlow(nullptr);
-    if (SwNode *const pNode = GoPreviousWithFrame(&idx, &pFlow))
+    if (GoPreviousWithFrame(&idx, &pFlow))
     {
         if (::CheckNodesRange(rNode, idx.GetNode(), true))
         {
@@ -158,7 +158,7 @@ SwFrame const* FindNeighbourFrameForNode(SwNode const& 
rNode)
         }
     }
     idx = rNode;
-    if (SwNode *const pNode = GoNextWithFrame(idx.GetNodes(), &idx, &pFlow))
+    if (GoNextWithFrame(idx.GetNodes(), &idx, &pFlow))
     {
         if (::CheckNodesRange(rNode, idx.GetNode(), true))
         {

Reply via email to