X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayoutModuleList.h;h=aa9925109d9c6ab25979d60e1bab419df79fd001;hb=0b9c27222a69f0ec657f008345ea812030596702;hp=8b47074a8e5ad516692191c62fed7dfa54da1dc0;hpb=51aebc9327345f6ea065035f489dbfec1568279f;p=lyx.git diff --git a/src/LayoutModuleList.h b/src/LayoutModuleList.h index 8b47074a8e..aa9925109d 100644 --- a/src/LayoutModuleList.h +++ b/src/LayoutModuleList.h @@ -75,6 +75,14 @@ public: /// to be made. bool adaptToBaseClass(LayoutFile const * const lay, std::list const & removedModules); + /// + bool operator==(LayoutModuleList const & other) const { + return lml_ == other.lml_; + } + /// + bool operator!=(LayoutModuleList const & other) const { + return !operator==(other); + } private: /// Removes modules excluded by, provided by, etc, the base class. /// \param lay The document class against which to check. @@ -96,5 +104,5 @@ private: /// std::list lml_; }; -} +} // namespace lyx #endif