diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 09:40:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 11:24:33 +0200 |
commit | 3b8e53f66ffd4d631a850fe76250124dc4a195c3 (patch) | |
tree | 2613882a4876f0a66324b7e29e61c46b3ec451b0 /sc/source/ui/xmlsource/xmlsourcedlg.cxx | |
parent | d242a19dbdd53b7ae0b6a6ceacca6aa1b6ac54a9 (diff) |
loplugin:constparams improve handling of pointer params
Change-Id: I4c0002e72703eded435bfe4985f5b0121bf8524b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122843
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/xmlsource/xmlsourcedlg.cxx')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index 0bbfa9d200b8..12837914d314 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -209,7 +209,7 @@ namespace { * the current entry position. The mapped cell position for a range link is * stored with the reference entry. */ -std::unique_ptr<weld::TreeIter> getReferenceEntry(const weld::TreeView& rTree, weld::TreeIter& rCurEntry) +std::unique_ptr<weld::TreeIter> getReferenceEntry(const weld::TreeView& rTree, const weld::TreeIter& rCurEntry) { std::unique_ptr<weld::TreeIter> xParent(rTree.make_iterator(&rCurEntry)); bool bParent = rTree.iter_parent(*xParent); @@ -274,7 +274,7 @@ void ScXMLSourceDlg::TreeItemSelected() } } -void ScXMLSourceDlg::DefaultElementSelected(weld::TreeIter& rEntry) +void ScXMLSourceDlg::DefaultElementSelected(const weld::TreeIter& rEntry) { if (mxLbTree->iter_has_child(rEntry)) { @@ -313,7 +313,7 @@ void ScXMLSourceDlg::DefaultElementSelected(weld::TreeIter& rEntry) SetSingleLinkable(); } -void ScXMLSourceDlg::RepeatElementSelected(weld::TreeIter& rEntry) +void ScXMLSourceDlg::RepeatElementSelected(const weld::TreeIter& rEntry) { // Check all its parents first. @@ -343,7 +343,7 @@ void ScXMLSourceDlg::RepeatElementSelected(weld::TreeIter& rEntry) SetRangeLinkable(); } -void ScXMLSourceDlg::AttributeSelected(weld::TreeIter& rEntry) +void ScXMLSourceDlg::AttributeSelected(const weld::TreeIter& rEntry) { // Check all its parent elements and make sure non of them are linked nor // repeat elements. In attribute's case, it's okay to have the immediate @@ -384,7 +384,7 @@ void ScXMLSourceDlg::SetRangeLinkable() mxMapGrid->set_sensitive(true); } -void ScXMLSourceDlg::SelectAllChildEntries(weld::TreeIter& rEntry) +void ScXMLSourceDlg::SelectAllChildEntries(const weld::TreeIter& rEntry) { std::unique_ptr<weld::TreeIter> xChild(mxLbTree->make_iterator(&rEntry)); if (!mxLbTree->iter_children(*xChild)) |