]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
Remove todo
[lyx.git] / src / ModuleList.cpp
index 2de1cb014ceac32b2b8fa86a56ed71449310bff2..d1ff3bee0a368d5d23767bc1939eb676b16d51d7 100644 (file)
@@ -34,8 +34,8 @@ namespace lyx {
 ModuleList moduleList;
 
 
-LyXModule::LyXModule(string n, string f, string d,
-                 vector<string> p) : 
+LyXModule::LyXModule(string const & n, string const & f, 
+                          string const & d, vector<string> const & p) : 
        name(n), filename(f), description(d), packageList(p), checked(false)
 {}
 
@@ -45,6 +45,7 @@ bool LyXModule::isAvailable() {
                return true;
        if (checked)
                return available;
+       checked = true;
        vector<string>::const_iterator it  = packageList.begin();
        vector<string>::const_iterator end = packageList.end(); 
        for (; it != end; ++it) {