]> git.lyx.org Git - features.git/blobdiff - src/Layout.cpp
Kill indexing into the list of layouts.
[features.git] / src / Layout.cpp
index 2efe9edf9f7cf937ca098ce35bdf8a17107b004e..134d6a1ad96af1ca9524d0aaf689b5617d0e34a4 100644 (file)
@@ -230,9 +230,10 @@ bool Layout::read(Lexer & lexrc, TextClass const & tclass)
                                               << to_utf8(style) << "'\n"
                                               << "All layouts so far:"
                                               << endl;
-                                       for (size_t i = 0; i != tclass.layoutCount(); ++i)
-                                               lyxerr << to_utf8(tclass.layout(i)->name())
-                                                      << endl;
+                                       DocumentClass::const_iterator lit = tclass.begin();
+                                       DocumentClass::const_iterator len = tclass.end();
+                                       for (; lit != len; ++lit)
+                                               lyxerr << to_utf8((*lit)->name()) << endl;
 
                                        //lexrc.printError("Cannot copy known "
                                        //               "style `$$Token'");