summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-06 13:09:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-06 18:35:45 +0200
commit2ac309188820036b1b99f983e8b793445e9b2ab2 (patch)
tree80db2a9f7f7726cb015f48f57e1cac8a77b01c58 /dbaccess/source/ui/app
parent698e5d54182d96a1fd0c3b864ba0e618f82dd1f1 (diff)
loplugin:const* make some params and methods const
Change-Id: Idec482c21c270912f9bcaeb980077c1616f67c8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104022 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/app')
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx4
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.hxx4
-rw-r--r--dbaccess/source/ui/app/AppDetailView.cxx2
-rw-r--r--dbaccess/source/ui/app/AppDetailView.hxx2
-rw-r--r--dbaccess/source/ui/app/AppTitleWindow.cxx2
-rw-r--r--dbaccess/source/ui/app/AppTitleWindow.hxx2
-rw-r--r--dbaccess/source/ui/app/AppView.cxx2
-rw-r--r--dbaccess/source/ui/app/AppView.hxx2
8 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 1d1a023445ae..aef0eaba350f 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -401,7 +401,7 @@ void OAppDetailPageHelper::selectElements(const Sequence< OUString>& _aNames)
}
}
-OUString OAppDetailPageHelper::getQualifiedName(weld::TreeIter* _pEntry) const
+OUString OAppDetailPageHelper::getQualifiedName(const weld::TreeIter* _pEntry) const
{
int nPos = getVisibleControlIndex();
OUString sComposedName;
@@ -633,7 +633,7 @@ namespace
}
void OAppDetailPageHelper::fillNames( const Reference< XNameAccess >& _xContainer, const ElementType _eType,
- const OUString& rImageId, weld::TreeIter* _pParent )
+ const OUString& rImageId, const weld::TreeIter* _pParent )
{
OSL_ENSURE(_xContainer.is(),"Data source is NULL! -> GPF");
OSL_ENSURE( ( _eType >= E_TABLE ) && ( _eType < E_ELEMENT_TYPE_COUNT ), "OAppDetailPageHelper::fillNames: invalid type!" );
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
index 6268f713eb43..03107f5ecf8b 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
@@ -125,7 +125,7 @@ namespace dbaui
void fillNames( const css::uno::Reference< css::container::XNameAccess >& _xContainer,
const ElementType _eType,
const OUString& rImageId,
- weld::TreeIter* _pParent );
+ const weld::TreeIter* _pParent );
/** sets the detail page
@param rTreeView
@@ -240,7 +240,7 @@ namespace dbaui
@return
the qualified name
*/
- OUString getQualifiedName( weld::TreeIter* _pEntry ) const;
+ OUString getQualifiedName( const weld::TreeIter* _pEntry ) const;
/// return the element of currently select entry
ElementType getElementType() const;
diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx
index 23011330a7e8..57a4f3038448 100644
--- a/dbaccess/source/ui/app/AppDetailView.cxx
+++ b/dbaccess/source/ui/app/AppDetailView.cxx
@@ -325,7 +325,7 @@ const TaskPaneData& OApplicationDetailView::impl_getTaskPaneData( ElementType _e
return rData;
}
-OUString OApplicationDetailView::getQualifiedName(weld::TreeIter* _pEntry) const
+OUString OApplicationDetailView::getQualifiedName(const weld::TreeIter* _pEntry) const
{
return GetControlHelper()->getQualifiedName( _pEntry );
}
diff --git a/dbaccess/source/ui/app/AppDetailView.hxx b/dbaccess/source/ui/app/AppDetailView.hxx
index 977bd015be02..58b382800865 100644
--- a/dbaccess/source/ui/app/AppDetailView.hxx
+++ b/dbaccess/source/ui/app/AppDetailView.hxx
@@ -146,7 +146,7 @@ namespace dbaui
@return
the qualified name
*/
- OUString getQualifiedName(weld::TreeIter* _pEntry) const;
+ OUString getQualifiedName(const weld::TreeIter* _pEntry) const;
/** returns if an entry is a leaf
@param rTreeView
diff --git a/dbaccess/source/ui/app/AppTitleWindow.cxx b/dbaccess/source/ui/app/AppTitleWindow.cxx
index dbe4e77abd53..be384b2d9076 100644
--- a/dbaccess/source/ui/app/AppTitleWindow.cxx
+++ b/dbaccess/source/ui/app/AppTitleWindow.cxx
@@ -51,7 +51,7 @@ weld::Container* OTitleWindow::getChildContainer()
return m_xChildContainer.get();
}
-void OTitleWindow::setChildWindow(std::shared_ptr<OChildWindow>& rChild)
+void OTitleWindow::setChildWindow(const std::shared_ptr<OChildWindow>& rChild)
{
m_xChild = rChild;
}
diff --git a/dbaccess/source/ui/app/AppTitleWindow.hxx b/dbaccess/source/ui/app/AppTitleWindow.hxx
index c00bf99df1cb..161e21e5c3fe 100644
--- a/dbaccess/source/ui/app/AppTitleWindow.hxx
+++ b/dbaccess/source/ui/app/AppTitleWindow.hxx
@@ -46,7 +46,7 @@ namespace dbaui
@param _pChild
The child window.
*/
- void setChildWindow(std::shared_ptr<OChildWindow>& rChild);
+ void setChildWindow(const std::shared_ptr<OChildWindow>& rChild);
/** gets the child window.
diff --git a/dbaccess/source/ui/app/AppView.cxx b/dbaccess/source/ui/app/AppView.cxx
index 59ba64f0b0ea..5873bc712404 100644
--- a/dbaccess/source/ui/app/AppView.cxx
+++ b/dbaccess/source/ui/app/AppView.cxx
@@ -237,7 +237,7 @@ void OApplicationView::paste()
pTest->paste();
}
-OUString OApplicationView::getQualifiedName(weld::TreeIter* _pEntry) const
+OUString OApplicationView::getQualifiedName(const weld::TreeIter* _pEntry) const
{
OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF");
return getDetailView()->getQualifiedName( _pEntry );
diff --git a/dbaccess/source/ui/app/AppView.hxx b/dbaccess/source/ui/app/AppView.hxx
index 4cc68c04ef4a..b3a5706c54b5 100644
--- a/dbaccess/source/ui/app/AppView.hxx
+++ b/dbaccess/source/ui/app/AppView.hxx
@@ -134,7 +134,7 @@ namespace dbaui
@return
the qualified name
*/
- OUString getQualifiedName(weld::TreeIter* _pEntry) const;
+ OUString getQualifiedName(const weld::TreeIter* _pEntry) const;
/** returns if an entry is a leaf
@param rTreeView