summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-24 08:54:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-24 15:06:24 +0100
commitceb8f5d62c7afc5547c9a6de8eb570a11b5fbd67 (patch)
tree2782cb4bb3adfe5ad11caa8f5a9c18b82bb03ee4 /sfx2
parent86fac2109d3b5e159628aee6392ecc856fb8a5a6 (diff)
loplugin:constantparam
Change-Id: I86592be0717c062a918108bf4437074b0f70b372 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132029 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/StyleList.cxx2
-rw-r--r--sfx2/source/dialog/templdlg.cxx11
-rw-r--r--sfx2/source/inc/templdgi.hxx2
3 files changed, 6 insertions, 9 deletions
diff --git a/sfx2/source/dialog/StyleList.cxx b/sfx2/source/dialog/StyleList.cxx
index cc9f94168a93..6f8e3543aac8 100644
--- a/sfx2/source/dialog/StyleList.cxx
+++ b/sfx2/source/dialog/StyleList.cxx
@@ -1699,7 +1699,7 @@ void StyleList::Update()
// other DocShell -> all new
m_pParentDialog->CheckItem(OString::number(m_nActFamily));
m_nActFilter = static_cast<sal_uInt16>(m_aLoadFactoryStyleFilter.Call(pDocShell));
- m_pParentDialog->IsUpdate(true, *this);
+ m_pParentDialog->IsUpdate(*this);
if (0xffff == m_nActFilter)
{
m_nActFilter = pDocShell->GetAutoStyleFilterIndex();
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 0e1fe5b822cc..5c28cbc6bf66 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -494,17 +494,14 @@ void SfxCommonTemplateDialog_Impl::FilterSelect(
m_aStyleList.FilterSelect(nActFilter, true);
}
-void SfxCommonTemplateDialog_Impl::IsUpdate(bool bDoUpdate, StyleList&)
+void SfxCommonTemplateDialog_Impl::IsUpdate(StyleList&)
{
SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame();
SfxObjectShell* pDocShell = pViewFrame->GetObjectShell();
- if (bDoUpdate)
+ nActFilter = static_cast<sal_uInt16>(LoadFactoryStyleFilter_Hdl(pDocShell));
+ if (0xffff == nActFilter)
{
- nActFilter = static_cast<sal_uInt16>(LoadFactoryStyleFilter_Hdl(pDocShell));
- if (0xffff == nActFilter)
- {
- nActFilter = pDocShell->GetAutoStyleFilterIndex();
- }
+ nActFilter = pDocShell->GetAutoStyleFilterIndex();
}
}
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index a5333d395b7f..6c72de1ca8e4 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -172,7 +172,7 @@ public:
void SelectStyle(const OUString& rStyle, bool bIsCallback, StyleList& rStyleList);
//When a new document is created, it comes into action
- void IsUpdate(bool bDoUpdate, StyleList&);
+ void IsUpdate(StyleList&);
// This function return the value of bUpdate in Stylelist
// This value is used in StyleList's Notify