include/sfx2/notebookbar/SfxNotebookBar.hxx | 2 +- sfx2/inc/srchdlg.hxx | 2 +- sfx2/source/dialog/srchdlg.cxx | 2 +- sfx2/source/inc/workwin.hxx | 2 +- sfx2/source/notebookbar/SfxNotebookBar.cxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 94ab2ad8c55a6da110b3c9892c9da7289bf32174 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jan 23 09:09:27 2019 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Jan 23 12:00:51 2019 +0100 loplugin:constparams in sfx2 Change-Id: I27102bc0e7d92d50e89248d463fb3fe4048536f3 Reviewed-on: https://gerrit.libreoffice.org/66769 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx index 08633bf27352..eeff0015a775 100644 --- a/include/sfx2/notebookbar/SfxNotebookBar.hxx +++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx @@ -47,7 +47,7 @@ public: /** Show menu bar in all frames of current application */ static void ShowMenubar(bool bShow); /** Show menu bar only in current frame */ - static void ShowMenubar(SfxViewFrame* pViewFrame, bool bShow); + static void ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow); static void ToggleMenubar(); private: 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits