]> git.lyx.org Git - lyx.git/blobdiff - src/Author.cpp
Maintain plain layout for separating paragraphs when switching layouts (#11936)
[lyx.git] / src / Author.cpp
index b70815c34912412fa00422e13d9c13797373fe03..e4f538da6d48a823828b30a0613246d2d71bf452 100644 (file)
@@ -178,13 +178,9 @@ ostream & operator<<(ostream & os, AuthorList const & a)
        // Copy the authorlist, because we don't want to sort the original
        AuthorList sorted = a;
        sorted.sort();
-
-       AuthorList::Authors::const_iterator a_it = sorted.begin();
-       AuthorList::Authors::const_iterator const a_end = sorted.end();
-
-       for (; a_it != a_end; ++a_it) {
-               if (a_it->used() && a_it->valid())
-                       os << "\\author " << *a_it << "\n";
+       for (auto const & aut : sorted) {
+               if (aut.used() && aut.valid())
+                       os << "\\author " << aut << "\n";
        }
        return os;
 }