summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-23 09:09:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-23 12:00:51 +0100
commit94ab2ad8c55a6da110b3c9892c9da7289bf32174 (patch)
treef89a2c56609b1926ef979d4892e1507892d94d9d /sfx2
parentbb30e9e591d5f9f913b3cd8fbaa3c5e412b509bd (diff)
loplugin:constparams in sfx2
Change-Id: I27102bc0e7d92d50e89248d463fb3fe4048536f3 Reviewed-on: https://gerrit.libreoffice.org/66769 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/srchdlg.hxx2
-rw-r--r--sfx2/source/dialog/srchdlg.cxx2
-rw-r--r--sfx2/source/inc/workwin.hxx2
-rw-r--r--sfx2/source/notebookbar/SfxNotebookBar.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/inc/srchdlg.hxx b/sfx2/inc/srchdlg.hxx
index 1e72f5e30edb..0b745092eba0 100644
--- a/sfx2/inc/srchdlg.hxx
+++ b/sfx2/inc/srchdlg.hxx
@@ -49,7 +49,7 @@ private:
public:
SearchDialog(weld::Window* pWindow, const OUString& rConfigName);
- static void runAsync(std::shared_ptr<SearchDialog>& rController);
+ static void runAsync(const std::shared_ptr<SearchDialog>& rController);
virtual ~SearchDialog() override;
void SetFindHdl( const Link<SearchDialog&,void>& rLink ) { m_aFindHdl = rLink; }
diff --git a/sfx2/source/dialog/srchdlg.cxx b/sfx2/source/dialog/srchdlg.cxx
index fe91d230fb47..eea857b6628f 100644
--- a/sfx2/source/dialog/srchdlg.cxx
+++ b/sfx2/source/dialog/srchdlg.cxx
@@ -129,7 +129,7 @@ void SearchDialog::SetFocusOnEdit()
m_xSearchEdit->grab_focus();
}
-void SearchDialog::runAsync(std::shared_ptr<SearchDialog>& rController)
+void SearchDialog::runAsync(const std::shared_ptr<SearchDialog>& rController)
{
weld::DialogController::runAsync(rController, [=](sal_Int32 /*nResult*/){ rController->m_aCloseHdl.Call(nullptr); });
}
diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx
index 04fa88c68953..040065f62543 100644
--- a/sfx2/source/inc/workwin.hxx
+++ b/sfx2/source/inc/workwin.hxx
@@ -100,7 +100,7 @@ struct SfxChild_Impl
nVisible = bIsVisible ? SfxChildVisibility::VISIBLE : SfxChildVisibility::NOT_VISIBLE;
}
- SfxChild_Impl(std::shared_ptr<SfxModelessDialogController>& rChild,
+ SfxChild_Impl(const std::shared_ptr<SfxModelessDialogController>& rChild,
SfxChildAlignment eAlignment):
pWin(nullptr), xController(rChild), eAlign(eAlignment), bResize(false),
bSetFocus( false )
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index 1ff5a8cc7d83..c45b4c80f0df 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -435,7 +435,7 @@ void SfxNotebookBar::ShowMenubar(bool bShow)
}
}
-void SfxNotebookBar::ShowMenubar(SfxViewFrame* pViewFrame, bool bShow)
+void SfxNotebookBar::ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow)
{
if (m_bLock)
return;