]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / Layout.cpp
index c29f0bd1f8a0d0a0359e18410488b417a7e38952..7fedb3209c11fc16da9b7edc43a6c3d4626958e2 100644 (file)
@@ -223,14 +223,9 @@ bool Layout::read(Lexer & lexrc, TextClass const & tclass)
                                               << to_utf8(style) << "'\n"
                                               << "All layouts so far:"
                                               << endl;
-                                       TextClass::const_iterator it =
-                                               tclass.begin();
-                                       TextClass::const_iterator end =
-                                               tclass.end();
-                                       for (; it != end; ++it) {
-                                               lyxerr << to_utf8((*it)->name())
+                                       for (size_t i = 0; i != tclass.layoutCount(); ++i)
+                                               lyxerr << to_utf8(tclass.layout(i)->name())
                                                       << endl;
-                                       }
 
                                        //lexrc.printError("Cannot copy known "
                                        //               "style `$$Token'");