X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FModuleList.cpp;h=51a942776610d4cd131db854deb3f886b0b267d9;hb=d6a93143ec2146210d79f58cac42f9608da86100;hp=d442d204a559cde98c0e15dec3b70f1063a1143e;hpb=c6c07d28ae99a0dee5fc4b76aae2827d3d09cf93;p=lyx.git diff --git a/src/ModuleList.cpp b/src/ModuleList.cpp index d442d204a5..51a9427766 100644 --- a/src/ModuleList.cpp +++ b/src/ModuleList.cpp @@ -40,7 +40,7 @@ LyXModule::LyXModule(string const & n, string const & i, string const & c): name_(n), id_(i), description_(d), package_list_(p), required_modules_(r), excluded_modules_(e), category_(c), - checked_(false) + checked_(false), available_(false) { filename_ = id_ + ".module"; } @@ -264,10 +264,10 @@ LyXModule * ModuleList::operator[](string const & str) LyXModuleList::iterator it = modlist_.begin(); for (; it != modlist_.end(); ++it) if (it->getID() == str) { - LyXModule & mod = *it; - return &mod; + LyXModule & mod = *it; + return &mod; } - return 0; + return 0; } } // namespace lyx