From: Richard Kimberly Heck Date: Sun, 4 Dec 2022 04:33:35 +0000 (-0500) Subject: Use a couple ranges X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9f258704aecc1dd42750eaf74787633c2bcd9d8a;p=features.git Use a couple ranges --- diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index e58dd68986..69194b1fee 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -1927,16 +1927,12 @@ docstring const LaTeXFeatures::getTClassHTMLStyles() const tcpreamble << tclass.htmlstyles(); - list::const_iterator cit = usedLayouts_.begin(); - list::const_iterator end = usedLayouts_.end(); - for (; cit != end; ++cit) - tcpreamble << tclass[*cit].htmlstyle(); + for (auto const & c : usedLayouts_) + tcpreamble << tclass[c].htmlstyle(); - cit = usedInsetLayouts_.begin(); - end = usedInsetLayouts_.end(); TextClass::InsetLayouts const & ils = tclass.insetLayouts(); - for (; cit != end; ++cit) { - TextClass::InsetLayouts::const_iterator it = ils.find(*cit); + for (auto const & c : usedInsetLayouts_) { + TextClass::InsetLayouts::const_iterator it = ils.find(c); if (it == ils.end()) continue; tcpreamble << it->second.htmlstyle();