diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:01:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 11:28:41 +0200 |
commit | 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch) | |
tree | 87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/source/uibase/inc/conttree.hxx | |
parent | fc79f23922ccae8b494b31a5dd7bb4767e50c87e (diff) |
loplugin:constmethod in sw
Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488
Reviewed-on: https://gerrit.libreoffice.org/79780
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/conttree.hxx')
-rw-r--r-- | sw/source/uibase/inc/conttree.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx index f748759e97ec..9ea8f9f9ffc9 100644 --- a/sw/source/uibase/inc/conttree.hxx +++ b/sw/source/uibase/inc/conttree.hxx @@ -165,7 +165,7 @@ class SwContentTree final void EditEntry( SvTreeListEntry const * pEntry, EditEntryMode nMode ); - void GotoContent(SwContent* pCnt); + void GotoContent(const SwContent* pCnt); static void SetInDrag(bool bSet) {bIsInDrag = bSet;} virtual VclPtr<PopupMenu> CreateContextMenu() override; @@ -219,11 +219,11 @@ public: /** folded together will not be glidled */ void HideTree(); - bool IsConstantView() { return State::CONSTANT == m_eState; } - bool IsActiveView() { return State::ACTIVE == m_eState; } - bool IsHiddenView() { return State::HIDDEN == m_eState; } + bool IsConstantView() const { return State::CONSTANT == m_eState; } + bool IsActiveView() const { return State::ACTIVE == m_eState; } + bool IsHiddenView() const { return State::HIDDEN == m_eState; } - const SwWrtShell* GetActiveWrtShell() {return m_pActiveShell;} + const SwWrtShell* GetActiveWrtShell() const {return m_pActiveShell;} SwWrtShell* GetHiddenWrtShell() {return m_pHiddenShell;} DECL_LINK( ContentDoubleClickHdl, SvTreeListBox*, bool ); |