[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Jul 31 20:54:33 UTC 2021


 sfx2/source/dialog/templdlg.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 748e3efcfe4c7298545ab8230118f90b1b9f30a7
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 31 20:22:14 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jul 31 22:53:59 2021 +0200

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list