From 7cd179df80957b7daefab028cf35aebb1083b014 Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 6 Oct 2020 12:27:39 +0200 Subject: loplugin:const& make some params and methods const Change-Id: I2973128a9c6c53187e1da400d1a5df763d515596 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104020 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/appl/newhelp.cxx | 2 +- sfx2/source/appl/newhelp.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2/source/appl') diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 72637cbcdcaf..10e53fa6c435 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -234,7 +234,7 @@ void ContentTabPage_Impl::InitRoot() } } -void ContentTabPage_Impl::ClearChildren(weld::TreeIter* pParent) +void ContentTabPage_Impl::ClearChildren(const weld::TreeIter* pParent) { std::unique_ptr xEntry = m_xContentBox->make_iterator(pParent); bool bEntry = m_xContentBox->iter_children(*xEntry); diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index 73df300dd6e3..25be4e6e3e12 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -72,7 +72,7 @@ private: DECL_LINK(ExpandingHdl, const weld::TreeIter&, bool); DECL_LINK(CollapsingHdl, const weld::TreeIter&, bool); - void ClearChildren(weld::TreeIter* pParent); + void ClearChildren(const weld::TreeIter* pParent); void InitRoot(); public: ContentTabPage_Impl(weld::Widget* pParent, SfxHelpIndexWindow_Impl* _pIdxWin); -- cgit