From 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 28 Sep 2019 10:01:37 +0200 Subject: loplugin:constmethod in sw Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488 Reviewed-on: https://gerrit.libreoffice.org/79780 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/dbui/dbtree.cxx | 2 +- sw/source/uibase/dbui/mmconfigitem.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/dbui') diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index afbb49f38f61..eea90633e048 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -393,7 +393,7 @@ void SwDBTreeList::SetWrtShell(SwWrtShell& rSh) namespace { - void GotoRootLevelParent(weld::TreeView& rTreeView, weld::TreeIter& rEntry) + void GotoRootLevelParent(const weld::TreeView& rTreeView, weld::TreeIter& rEntry) { while (rTreeView.get_iter_depth(rEntry)) rTreeView.iter_parent(rEntry); diff --git a/sw/source/uibase/dbui/mmconfigitem.cxx b/sw/source/uibase/dbui/mmconfigitem.cxx index 316002aedf85..65625e3fdc9c 100644 --- a/sw/source/uibase/dbui/mmconfigitem.cxx +++ b/sw/source/uibase/dbui/mmconfigitem.cxx @@ -801,12 +801,12 @@ void SwMailMergeConfigItem::SetCurrentConnection( m_pImpl->SetModified(); } -Reference< XDataSource> const & SwMailMergeConfigItem::GetSource() +Reference< XDataSource> const & SwMailMergeConfigItem::GetSource() const { return m_pImpl->m_xSource; } -SharedConnection const & SwMailMergeConfigItem::GetConnection() +SharedConnection const & SwMailMergeConfigItem::GetConnection() const { return m_pImpl->m_xConnection; } -- cgit