diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 09:09:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 12:00:51 +0100 |
commit | 94ab2ad8c55a6da110b3c9892c9da7289bf32174 (patch) | |
tree | f89a2c56609b1926ef979d4892e1507892d94d9d /sfx2/source | |
parent | bb30e9e591d5f9f913b3cd8fbaa3c5e412b509bd (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/source')
-rw-r--r-- | sfx2/source/dialog/srchdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/workwin.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
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; |