}
-bool LyXModule::isAvailable() {
+bool LyXModule::isAvailable() const {
#ifdef TEX2LYX
return true;
#else
}
-LyXModule * ModuleList::operator[](string const & str)
+LyXModule const * ModuleList::operator[](string const & str) const
{
- LyXModuleList::iterator it = modlist_.begin();
+ LyXModuleList::const_iterator it = modlist_.begin();
for (; it != modlist_.end(); ++it)
if (it->getID() == str) {
- LyXModule & mod = *it;
+ LyXModule const & mod = *it;
return &mod;
}
return 0;
}
+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;
+ }
+ return 0;
+}
+
} // namespace lyx