diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-25 10:24:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-27 07:34:52 +0100 |
commit | 19240f625f8bd7b772481abc8e678d7b0fadd921 (patch) | |
tree | df98eb1d1d2bf11179aea13de58aa38548458b9d /lotuswordpro/source/filter/lwpdlvlist.hxx | |
parent | 60c7725a20ff0d77e3025ed60608f57d46e50b58 (diff) |
loplugin:unusedfields look for classes where we can make all the..
fields private
Change-Id: Id3c6b123f06ab5dcf87628de4c347626110d2d27
Reviewed-on: https://gerrit.libreoffice.org/68302
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/source/filter/lwpdlvlist.hxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdlvlist.hxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/lotuswordpro/source/filter/lwpdlvlist.hxx b/lotuswordpro/source/filter/lwpdlvlist.hxx index f84e74a7c64b..19f8ff7a5253 100644 --- a/lotuswordpro/source/filter/lwpdlvlist.hxx +++ b/lotuswordpro/source/filter/lwpdlvlist.hxx @@ -72,16 +72,14 @@ class LwpDLVList : public LwpObject { public: LwpDLVList(LwpObjectHeader const &objHdr, LwpSvStream* pStrm); + LwpObjectID& GetNext() { return m_ListNext; } + LwpObjectID& GetPrevious() { return m_ListPrevious; } protected: virtual ~LwpDLVList() override {} - + void Read() override; +private: LwpObjectID m_ListPrevious; LwpObjectID m_ListNext; -protected: - void Read() override; -public: - LwpObjectID& GetNext() { return m_ListNext; } - LwpObjectID& GetPrevious() { return m_ListPrevious; } }; /** @@ -118,14 +116,13 @@ class LwpDLNFPVList : public LwpDLNFVList public: LwpDLNFPVList(LwpObjectHeader const &objHdr, LwpSvStream* pStrm); virtual ~LwpDLNFPVList() override; -protected: - bool m_bHasProperties; - std::unique_ptr<LwpPropList> m_pPropList; + LwpPropList* GetPropList() { return m_pPropList.get(); } protected: void Read() override; void ReadPropertyList(LwpObjectStream* pObjStrm); -public: - LwpPropList* GetPropList() { return m_pPropList.get(); } +private: + bool m_bHasProperties; + std::unique_ptr<LwpPropList> m_pPropList; }; /** @@ -153,7 +150,7 @@ public: LwpDLVListHead(){} void Read(LwpObjectStream* pObjStrm); LwpObjectID& GetFirst() { return m_objHead; } -protected: +private: LwpObjectID m_objHead;//LwpDLVList }; |