diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-06-01 08:46:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-06-01 09:54:55 +0200 |
commit | 6dbccf3d9344be0c2ba162a8df5fc0bf425cb84e (patch) | |
tree | ace1b0e1e81047c386b979158c61b133810db3e5 /cui | |
parent | 9cb1a07dc2760a30d7f321aa7fa4ce2a460dfa6c (diff) |
Clean up some loop a bit
Change-Id: I96b760b7bd220b799f4843c5d5e07385a9a995d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135215
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/fontsubs.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index b5c98b76663b..93c8b03d98b3 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -204,14 +204,13 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet* ) std::vector<SubstitutionStruct> aFontSubs = svtools::GetFontSubstitutions(); std::unique_ptr<weld::TreeIter> xIter(m_xCheckLB->make_iterator()); - for (auto const & i: aFontSubs) + for (auto const & sub: aFontSubs) { m_xCheckLB->append(xIter.get()); - const SubstitutionStruct* pSubs = &i; - m_xCheckLB->set_toggle(*xIter, pSubs->bReplaceAlways ? TRISTATE_TRUE : TRISTATE_FALSE, 0); - m_xCheckLB->set_toggle(*xIter, pSubs->bReplaceOnScreenOnly ? TRISTATE_TRUE : TRISTATE_FALSE, 1); - m_xCheckLB->set_text(*xIter, pSubs->sFont, 2); - m_xCheckLB->set_text(*xIter, pSubs->sReplaceBy, 3); + m_xCheckLB->set_toggle(*xIter, sub.bReplaceAlways ? TRISTATE_TRUE : TRISTATE_FALSE, 0); + m_xCheckLB->set_toggle(*xIter, sub.bReplaceOnScreenOnly ? TRISTATE_TRUE : TRISTATE_FALSE, 1); + m_xCheckLB->set_text(*xIter, sub.sFont, 2); + m_xCheckLB->set_text(*xIter, sub.sReplaceBy, 3); } m_xCheckLB->thaw(); |