From a57ade9be3aa03634933e767eab5e8fb640760ca Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Apr 2024 07:52:38 +0200 Subject: -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 --- sw/source/core/docnode/node2lay.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source') 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)) { -- cgit