summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-04 16:19:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-05 09:33:57 +0200
commit50d9f755a9a2894c2f6e781a3e5ccb94278761b8 (patch)
treee12018300f9af99c73da4de21efca5c060101f25 /sfx2/source/dialog/templdlg.cxx
parent23583706b51f4c1cde8ceb20557fe376691fad88 (diff)
loplugin:constantparam
Change-Id: I1925234e3f82adfa1f82755e9cef7e3e3bc00d04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153981 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 6b2c258a6aba..7f44bf64d366 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -505,7 +505,7 @@ void SfxCommonTemplateDialog_Impl::EnableHierarchical(bool const bEnable, StyleL
// If bHierarchical, then the family can have changed
// minus one since hierarchical is inserted at the start
m_bWantHierarchical = false; // before FilterSelect
- FilterSelect(mxFilterLb->get_active() - 1, true);
+ FilterSelect(mxFilterLb->get_active() - 1);
}
SelectStyle(aSelectedEntry, false, rStyleList);
}
@@ -513,12 +513,9 @@ void SfxCommonTemplateDialog_Impl::EnableHierarchical(bool const bEnable, StyleL
// Other filters; can be switched by the users or as a result of new or
// editing, if the current document has been assigned a different filter.
void SfxCommonTemplateDialog_Impl::FilterSelect(
- sal_uInt16 nEntry, // Idx of the new Filters
- bool bForce) // Force update, even if the new filter is equal to the current
+ sal_uInt16 nEntry // Idx of the new Filters
+ )
{
- if (nEntry == nActFilter && !bForce)
- return;
-
nActFilter = nEntry;
m_aStyleList.FilterSelect(nActFilter, true);
}