diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-24 08:54:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-24 15:06:24 +0100 |
commit | ceb8f5d62c7afc5547c9a6de8eb570a11b5fbd67 (patch) | |
tree | 2782cb4bb3adfe5ad11caa8f5a9c18b82bb03ee4 /sfx2/source/dialog/templdlg.cxx | |
parent | 86fac2109d3b5e159628aee6392ecc856fb8a5a6 (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/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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(); } } |