Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28455 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-02-11 20:02:53 +00:00
parent 9db713da16
commit 7e4d4d2641
2 changed files with 8 additions and 4 deletions

View File

@ -82,8 +82,7 @@ LayoutFile const & LayoutFileList::operator[](string const & classname) const
}
LayoutFile &
LayoutFileList::operator[](string const & classname)
LayoutFile & LayoutFileList::operator[](string const & classname)
{
LASSERT(haveClass(classname), /**/);
return *classmap_[classname];

View File

@ -67,8 +67,10 @@ public:
///
std::list<std::string> const & defaultModules() const
{ return default_modules_; }
///
std::list<std::string> const & providedModules() const
{ return provided_modules_; }
///
std::list<std::string> const & excludedModules() const
{ return excluded_modules_; }
private:
@ -92,6 +94,7 @@ class LayoutFileList {
public:
///
LayoutFileList() {}
///
~LayoutFileList();
/// \return The sole instance of this class.
static LayoutFileList & get();
@ -99,9 +102,11 @@ public:
bool empty() const { return classmap_.empty(); }
///
bool haveClass(std::string const & classname) const;
///
/// Note that this will assert if we don't have classname, so
/// check via haveClass() first.
LayoutFile const & operator[](std::string const & classname) const;
///
/// Note that this will assert if we don't have classname, so
/// check via haveClass() first.
LayoutFile & operator[](std::string const & classname);
/// Read textclass list. Returns false if this fails.
bool read();