diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-08 07:52:38 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-08 09:50:20 +0200 |
commit | a57ade9be3aa03634933e767eab5e8fb640760ca (patch) | |
tree | 58a452175f39c534962c71a813d90e7c85bebdcc /sw/source | |
parent | 6202211a09175e914298f93be8ee17260d8a5bf3 (diff) |
-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.bergmann@allotropia.de>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/docnode/node2lay.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |