diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-31 20:22:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-31 22:53:59 +0200 |
commit | 748e3efcfe4c7298545ab8230118f90b1b9f30a7 (patch) | |
tree | 69bae233bccef7943856ed53c5fd13f601dbce50 /sfx2 | |
parent | f27b24837af2bc8ff080375929a9a6f32d26c5dd (diff) |
cid#1489714 Unused value
Change-Id: I265946afb52e20f0eac0348fdb692b6e38f0f90a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119763
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index ae0d646abc75..a3f3cfd8b66d 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -286,11 +286,6 @@ void SfxCommonTemplateDialog_Impl::Initialize() IMPL_LINK(SfxCommonTemplateDialog_Impl, UpdateStyles_Hdl, StyleFlags, nFlags, void) { const SfxStyleFamilyItem* pItem = m_aStyleList.GetFamilyItem(); - SfxStyleSearchBits nFilter(nActFilter < pItem->GetFilterList().size() - ? pItem->GetFilterList()[nActFilter].nFlags - : SfxStyleSearchBits::Auto); - if (nFilter == SfxStyleSearchBits::Auto) // automatic - nFilter = nAppFilter; if (nFlags & StyleFlags::UpdateFamily) // Update view type list (Hierarchical, All, etc. { @@ -314,8 +309,6 @@ IMPL_LINK(SfxCommonTemplateDialog_Impl, UpdateStyles_Hdl, StyleFlags, nFlags, vo nActFilter = 0; m_aStyleList.SetFilterIdx(nActFilter); mxFilterLb->set_active(1); - nFilter = (nActFilter < rFilter.size()) ? rFilter[nActFilter].nFlags - : SfxStyleSearchBits::Auto; } // if the tree view again, select family hierarchy |