]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
This doesn't return a reference any more.
[lyx.git] / src / ModuleList.cpp
index 3b7e8134cb41ecc0297de6b697f6623b3dffeb16..b22f48d8e62972c51b9027afa7c1f7b27108a9bd 100644 (file)
 
 #include "ModuleList.h"
 
-#include "support/debug.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 
+#include "support/debug.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
@@ -76,7 +76,7 @@ public:
 };
 
 
-//Much of this is borrowed from TextClassList::read()
+//Much of this is borrowed from LayoutFileList::read()
 bool ModuleList::load()
 {
        FileName const real_file = libFileSearch("", "lyxmodules.lst");
@@ -90,7 +90,7 @@ bool ModuleList::load()
                return false;
        }
 
-       Lexer lex(0, 0);
+       Lexer lex;
        if (!lex.setFile(real_file)) {
                lyxerr << "ModuleList::load():"
                                "lyxlex was not able to set file: "