From: Richard Kimberly Heck Date: Sun, 4 Dec 2022 17:06:48 +0000 (-0500) Subject: Use ranges X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dfa87371f707614915c9d60df020a58ca2eb4e1a;p=features.git Use ranges --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 453b1e1bb5..6b156b9dac 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -4009,16 +4009,10 @@ docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf, // FIXME XHTML // Other such tags? What about the other text ranges? - vector::const_iterator cit = tagsToClose.begin(); - vector::const_iterator cen = tagsToClose.end(); - for (; cit != cen; ++cit) - xs << *cit; - - vector::const_iterator sit = tagsToOpen.begin(); - vector::const_iterator sen = tagsToOpen.end(); - for (; sit != sen; ++sit) - xs << *sit; - + for (auto const & t : tagsToClose) + xs << t; + for (auto const & t : tagsToOpen) + xs << t; tagsToClose.clear(); tagsToOpen.clear();