]> git.lyx.org Git - features.git/commitdiff
Simplify.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 13 May 2020 18:49:01 +0000 (14:49 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 13 May 2020 18:49:01 +0000 (14:49 -0400)
src/insets/InsetText.cpp

index 3d7de487f6d1b224327d4bc36a999e8079ed75a8..d4f81f2627d6039e6bf2cce65ff7d6d351fb1e4e 100644 (file)
@@ -749,8 +749,9 @@ void InsetText::appendParagraphs(ParagraphList & plist)
        mergeParagraph(buffer().params(), pl,
                       distance(pl.begin(), ins) - 1);
 
-       for_each(pit, plist.end(),
-                bind(&ParagraphList::push_back, ref(pl), _1));
+       ParagraphList::iterator const pend = plist.end();
+       for (; pit != pend; ++pit)
+               pl.push_back(*pit);
 }