diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-06 15:32:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-06 18:37:47 +0200 |
commit | 1f8fbff65d91f1d8297b94dd67fffceb7475dce5 (patch) | |
tree | 35ecc29ca2734db28e69cfb22c54e0e2d0ad3580 /reportdesign | |
parent | 4bc31abb56f806ee399344160ce0d7c27af48f5e (diff) |
loplugin:const* make some params and methods const
Change-Id: I97c5bbb929a2a4a029af4e6cb0fd571bbc2b698b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104030
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/Navigator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx index 6d0e900d13f2..13e5daebedec 100644 --- a/reportdesign/source/ui/dlg/Navigator.cxx +++ b/reportdesign/source/ui/dlg/Navigator.cxx @@ -136,10 +136,10 @@ class NavigatorTree : public ::cppu::BaseMutex ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pReportListener; ::rtl::Reference< comphelper::OSelectionChangeMultiplexer> m_pSelectionListener; - void insertEntry(const OUString& rName, weld::TreeIter* pParent, const OUString& rImageId, int nPosition, UserData* pData, weld::TreeIter& rRet); + void insertEntry(const OUString& rName, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition, UserData* pData, weld::TreeIter& rRet); - void traverseSection(const uno::Reference<report::XSection>& xSection, weld::TreeIter* pParent, const OUString& rImageId, int nPosition = -1); - void traverseFunctions(const uno::Reference< report::XFunctions>& xFunctions, weld::TreeIter* pParent); + void traverseSection(const uno::Reference<report::XSection>& xSection, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition = -1); + void traverseFunctions(const uno::Reference< report::XFunctions>& xFunctions, const weld::TreeIter* pParent); protected: // OSelectionChangeListener @@ -379,7 +379,7 @@ void NavigatorTree::_selectionChanged( const lang::EventObject& aEvent ) m_pSelectionListener->unlock(); } -void NavigatorTree::insertEntry(const OUString& rName, weld::TreeIter* pParent, const OUString& rImageId, +void NavigatorTree::insertEntry(const OUString& rName, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition, UserData* pData, weld::TreeIter& rRet) { OUString sId = pData ? OUString::number(reinterpret_cast<sal_Int64>(pData)) : OUString(); @@ -388,7 +388,7 @@ void NavigatorTree::insertEntry(const OUString& rName, weld::TreeIter* pParent, m_xTreeView->set_image(rRet, rImageId); } -void NavigatorTree::traverseSection(const uno::Reference<report::XSection>& xSection, weld::TreeIter* pParent, const OUString& rImageId, int nPosition) +void NavigatorTree::traverseSection(const uno::Reference<report::XSection>& xSection, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition) { std::unique_ptr<weld::TreeIter> xSectionIter = m_xTreeView->make_iterator(); std::unique_ptr<weld::TreeIter> xScratch = m_xTreeView->make_iterator(); @@ -412,7 +412,7 @@ void NavigatorTree::traverseSection(const uno::Reference<report::XSection>& xSec } } -void NavigatorTree::traverseFunctions(const uno::Reference< report::XFunctions>& xFunctions, weld::TreeIter* pParent) +void NavigatorTree::traverseFunctions(const uno::Reference< report::XFunctions>& xFunctions, const weld::TreeIter* pParent) { std::unique_ptr<weld::TreeIter> xFunctionIter = m_xTreeView->make_iterator(); std::unique_ptr<weld::TreeIter> xScratch = m_xTreeView->make_iterator(); |