X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayoutModuleList.h;h=245b6a7e693bd54ba3d77080559cade71c0baf2e;hb=35540efe5224c932e4b0c740cc163f591b49950c;hp=d2a3efc181f28a38a16273e194086d3bba54d1d4;hpb=f946b6ed0bb582d0d8cd2775459ea2c001bfca47;p=lyx.git diff --git a/src/LayoutModuleList.h b/src/LayoutModuleList.h index d2a3efc181..245b6a7e69 100644 --- a/src/LayoutModuleList.h +++ b/src/LayoutModuleList.h @@ -19,6 +19,12 @@ namespace lyx { class LayoutFile; +/** + Represents a list of modules, such as might be associated with + a particular document. Provides methods for adding modules, checking + if a module can be added, and, importantly, adapting the list to a + new DocumentClass. +*/ class LayoutModuleList { public: /// @@ -65,7 +71,7 @@ public: /// \return true if no changes had to be made, false if some did have /// to be made. bool adaptToBaseClass(LayoutFile const * const lay, - std::list removedModules); + std::list const & removedModules); private: /// Removes modules excluded by, provided by, etc, the base class. /// \param lay The document class against which to check.