summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 09:40:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 11:24:33 +0200
commit3b8e53f66ffd4d631a850fe76250124dc4a195c3 (patch)
tree2613882a4876f0a66324b7e29e61c46b3ec451b0 /sfx2
parentd242a19dbdd53b7ae0b6a6ceacca6aa1b6ac54a9 (diff)
loplugin:constparams improve handling of pointer params
Change-Id: I4c0002e72703eded435bfe4985f5b0121bf8524b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122843 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/childwin.cxx2
-rw-r--r--sfx2/source/appl/workwin.cxx2
-rw-r--r--sfx2/source/dialog/templdlg.cxx8
-rw-r--r--sfx2/source/inc/templdgi.hxx8
-rw-r--r--sfx2/source/inc/workwin.hxx2
-rw-r--r--sfx2/source/view/frame2.cxx2
-rw-r--r--sfx2/source/view/viewsh.cxx2
7 files changed, 13 insertions, 13 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index 51f58a4193c0..f03489bf688d 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -420,7 +420,7 @@ bool ParentIsFloatingWindow(const vcl::Window *pParent)
return false;
}
-void SfxChildWindow::SetFactory_Impl( SfxChildWinFactory *pF )
+void SfxChildWindow::SetFactory_Impl( const SfxChildWinFactory *pF )
{
pImpl->aFact = *pF;
}
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index 4bdad2e492b9..ce2459d15748 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -924,7 +924,7 @@ void SfxWorkWindow::ReleaseChild_Impl( vcl::Window& rWindow )
OSL_FAIL( "releasing unregistered child" );
}
-void SfxWorkWindow::ReleaseChild_Impl(SfxDialogController& rController)
+void SfxWorkWindow::ReleaseChild_Impl(const SfxDialogController& rController)
{
SfxChild_Impl *pChild = nullptr;
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index be5b0806b5e8..ef056973efe6 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -911,22 +911,22 @@ void SfxCommonTemplateDialog_Impl::EnableEdit(bool b, StyleList* rStyleList)
if (rStyleList == &m_aStyleList || rStyleList == nullptr)
m_aStyleList.Enableedit(b);
}
-void SfxCommonTemplateDialog_Impl::EnableDel(bool b, StyleList* rStyleList)
+void SfxCommonTemplateDialog_Impl::EnableDel(bool b, const StyleList* rStyleList)
{
if (rStyleList == &m_aStyleList || rStyleList == nullptr)
m_aStyleList.Enabledel(b);
}
-void SfxCommonTemplateDialog_Impl::EnableNew(bool b, StyleList* rStyleList)
+void SfxCommonTemplateDialog_Impl::EnableNew(bool b, const StyleList* rStyleList)
{
if (rStyleList == &m_aStyleList || rStyleList == nullptr)
m_aStyleList.Enablenew(b);
}
-void SfxCommonTemplateDialog_Impl::EnableHide(bool b, StyleList* rStyleList)
+void SfxCommonTemplateDialog_Impl::EnableHide(bool b, const StyleList* rStyleList)
{
if (rStyleList == &m_aStyleList || rStyleList == nullptr)
m_aStyleList.Enablehide(b);
}
-void SfxCommonTemplateDialog_Impl::EnableShow(bool b, StyleList* rStyleList)
+void SfxCommonTemplateDialog_Impl::EnableShow(bool b, const StyleList* rStyleList)
{
if (rStyleList == &m_aStyleList || rStyleList == nullptr)
m_aStyleList.Enableshow(b);
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index 31a38ac294d5..a6934cbc9b6f 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -159,10 +159,10 @@ public:
// Used in StyleList::SelectStyle, StyleList::Notify, IMPL_LINK(PopupFlatMenuHdl)
// These functions are used when a style is edited, deleted, created etc..
virtual void EnableEdit(bool b, StyleList* rStyleList);
- void EnableDel(bool b, StyleList* rStyleList);
- void EnableNew(bool b, StyleList* rStyleList);
- void EnableHide(bool b, StyleList* rStyleList);
- void EnableShow(bool b, StyleList* rStyleList);
+ void EnableDel(bool b, const StyleList* rStyleList);
+ void EnableNew(bool b, const StyleList* rStyleList);
+ void EnableHide(bool b, const StyleList* rStyleList);
+ void EnableShow(bool b, const StyleList* rStyleList);
// Used in TreeDrag
void EnableTreeDrag(bool b);
diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx
index e407fcf54244..350901910554 100644
--- a/sfx2/source/inc/workwin.hxx
+++ b/sfx2/source/inc/workwin.hxx
@@ -243,7 +243,7 @@ public:
// Methods for all Child windows
void DataChanged_Impl();
void ReleaseChild_Impl( vcl::Window& rWindow );
- void ReleaseChild_Impl(SfxDialogController&);
+ void ReleaseChild_Impl(const SfxDialogController&);
SfxChild_Impl* RegisterChild_Impl( vcl::Window& rWindow, SfxChildAlignment eAlign );
SfxChild_Impl* RegisterChild_Impl(std::shared_ptr<SfxDialogController>& rController, SfxChildAlignment eAlign);
void ShowChildren_Impl();
diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx
index 990f46a53f86..2811c32185f0 100644
--- a/sfx2/source/view/frame2.cxx
+++ b/sfx2/source/view/frame2.cxx
@@ -379,7 +379,7 @@ bool SfxFrame::IsMenuBarOn_Impl() const
return pImpl->bMenuBarOn;
}
-void SfxFrame::PrepareForDoc_Impl( SfxObjectShell& i_rDoc )
+void SfxFrame::PrepareForDoc_Impl( const SfxObjectShell& i_rDoc )
{
const ::comphelper::NamedValueCollection aDocumentArgs( i_rDoc.GetModel()->getArgs2( { "Hidden", "PluginMode" } ) );
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 6bbc18f86ca7..009c16f9feb4 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1831,7 +1831,7 @@ static void Change( Menu* pMenu, SfxViewShell* pView )
}
-bool SfxViewShell::TryContextMenuInterception( Menu& rIn, const OUString& rMenuIdentifier, VclPtr<Menu>& rpOut, ui::ContextMenuExecuteEvent aEvent )
+bool SfxViewShell::TryContextMenuInterception( const Menu& rIn, const OUString& rMenuIdentifier, VclPtr<Menu>& rpOut, ui::ContextMenuExecuteEvent aEvent )
{
rpOut = nullptr;
bool bModified = false;