From 8e33793d72a0561ebcf19ca22df814bb347813b7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Dec 2022 15:37:26 +0200 Subject: loplugin:unusedfields make some fields private Change-Id: I7eea4baf65c0b49d0edf2516d84914f94c5194d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143528 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/undobj.hxx | 3 +-- sw/inc/unoframe.hxx | 5 +++-- sw/inc/unotbl.hxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/inc') diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx index ab3fb876302e..f95a3aa78bfc 100644 --- a/sw/inc/undobj.hxx +++ b/sw/inc/undobj.hxx @@ -257,13 +257,12 @@ class SwUndoInserts : public SwUndo, public SwUndRng, private SwUndoSaveContent std::vector< std::shared_ptr > m_FlyUndos; std::unique_ptr m_pRedlineData; SwNodeOffset m_nDeleteTextNodes; - -protected: SwNodeOffset m_nNodeDiff; /// start of Content in UndoNodes for Redo std::optional m_oUndoNodeIndex; sal_uInt16 m_nSetPos; // Start in the history list. +protected: SwUndoInserts( SwUndoId nUndoId, const SwPaM& ); public: virtual ~SwUndoInserts() override; diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx index e1b1425f103c..e87cb87e0675 100644 --- a/sw/inc/unoframe.hxx +++ b/sw/inc/unoframe.hxx @@ -76,11 +76,12 @@ private: sal_Int64 m_nVisibleAreaWidth; sal_Int64 m_nVisibleAreaHeight; css::uno::Reference m_xParentText; + css::uno::Reference< css::beans::XPropertySet > mxStyleData; + css::uno::Reference< css::container::XNameAccess > mxStyleFamily; + void DisposeInternal(); protected: - css::uno::Reference< css::beans::XPropertySet > mxStyleData; - css::uno::Reference< css::container::XNameAccess > mxStyleFamily; virtual void Notify(const SfxHint&) override; virtual ~SwXFrame() override; diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index 178989fbaefc..fb02bfb9f9d1 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -194,6 +194,7 @@ class SW_DLLPUBLIC SwXTextTableCursor final { SwFrameFormat* m_pFrameFormat; const SfxItemPropertySet* m_pPropSet; + sw::UnoCursorPointer m_pUnoCursor; public: SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox const* pBox); @@ -237,7 +238,6 @@ public: const SwUnoCursor& GetCursor() const; SwUnoCursor& GetCursor(); - sw::UnoCursorPointer m_pUnoCursor; SwFrameFormat* GetFrameFormat() const { return m_pFrameFormat; } }; -- cgit