summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-16 17:58:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-16 19:58:41 +0100
commit471bbaf15fb392a194b9392d982cf2e33495f4b3 (patch)
treeaad4198deb5577d52ab74ec852b6f68772f11c2a /sw/inc
parent55bf8a21d06c47760976f4d0051248797be47a61 (diff)
loplugin:unusedfields
Change-Id: I91ec189ea1f389a978ef56339bbf6b43cbec6798 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164929 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/tox.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index 74b26b9515d7..bd1c25f50668 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -54,11 +54,9 @@ namespace sw {
};
struct FindContentFrameHint final : SfxHint {
SwContentFrame*& m_rpContentFrame;
- const SwDoc& m_rDoc;
const SwRootFrame& m_rLayout;
- FindContentFrameHint(SwContentFrame*& rpContentFrame, const SwDoc& rDoc, const SwRootFrame& rLayout)
+ FindContentFrameHint(SwContentFrame*& rpContentFrame,const SwRootFrame& rLayout)
: m_rpContentFrame(rpContentFrame)
- , m_rDoc(rDoc)
, m_rLayout(rLayout)
{}
};
@@ -185,10 +183,10 @@ public:
SwDoc& GetDoc() const { return m_rDoc; }
void CollectTextMarks(SwTOXMarks& rMarks) const
{ const_cast<SwTOXType*>(this)->GetNotifier().Broadcast(sw::CollectTextMarksHint(rMarks)); }
- SwContentFrame* FindContentFrame(const SwDoc& rDoc, const SwRootFrame& rLayout) const
+ SwContentFrame* FindContentFrame(const SwRootFrame& rLayout) const
{
SwContentFrame* pContentFrame = nullptr;
- const_cast<SwTOXType*>(this)->GetNotifier().Broadcast(sw::FindContentFrameHint(pContentFrame, rDoc, rLayout));
+ const_cast<SwTOXType*>(this)->GetNotifier().Broadcast(sw::FindContentFrameHint(pContentFrame, rLayout));
return pContentFrame;
}
void CollectTextTOXMarksForLayout(std::vector<std::reference_wrapper<SwTextTOXMark>>& rMarks, const SwRootFrame* pLayout) const