Kaydet (Commit) 94ab2ad8 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in sfx2

Change-Id: I27102bc0e7d92d50e89248d463fb3fe4048536f3
Reviewed-on: https://gerrit.libreoffice.org/66769
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst bb30e9e5
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
/** Show menu bar in all frames of current application */ /** Show menu bar in all frames of current application */
static void ShowMenubar(bool bShow); static void ShowMenubar(bool bShow);
/** Show menu bar only in current frame */ /** 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(); static void ToggleMenubar();
private: private:
......
...@@ -49,7 +49,7 @@ private: ...@@ -49,7 +49,7 @@ private:
public: public:
SearchDialog(weld::Window* pWindow, const OUString& rConfigName); 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; virtual ~SearchDialog() override;
void SetFindHdl( const Link<SearchDialog&,void>& rLink ) { m_aFindHdl = rLink; } void SetFindHdl( const Link<SearchDialog&,void>& rLink ) { m_aFindHdl = rLink; }
......
...@@ -129,7 +129,7 @@ void SearchDialog::SetFocusOnEdit() ...@@ -129,7 +129,7 @@ void SearchDialog::SetFocusOnEdit()
m_xSearchEdit->grab_focus(); 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); }); weld::DialogController::runAsync(rController, [=](sal_Int32 /*nResult*/){ rController->m_aCloseHdl.Call(nullptr); });
} }
......
...@@ -100,7 +100,7 @@ struct SfxChild_Impl ...@@ -100,7 +100,7 @@ struct SfxChild_Impl
nVisible = bIsVisible ? SfxChildVisibility::VISIBLE : SfxChildVisibility::NOT_VISIBLE; nVisible = bIsVisible ? SfxChildVisibility::VISIBLE : SfxChildVisibility::NOT_VISIBLE;
} }
SfxChild_Impl(std::shared_ptr<SfxModelessDialogController>& rChild, SfxChild_Impl(const std::shared_ptr<SfxModelessDialogController>& rChild,
SfxChildAlignment eAlignment): SfxChildAlignment eAlignment):
pWin(nullptr), xController(rChild), eAlign(eAlignment), bResize(false), pWin(nullptr), xController(rChild), eAlign(eAlignment), bResize(false),
bSetFocus( false ) bSetFocus( false )
......
...@@ -435,7 +435,7 @@ void SfxNotebookBar::ShowMenubar(bool bShow) ...@@ -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) if (m_bLock)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment