summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
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/source/dialog/templdlg.cxx
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/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx8
1 files changed, 4 insertions, 4 deletions
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);