X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayoutFile.cpp;h=5f2f0d3db8d4819ee106e29bae6316f1ef30e364;hb=0b791d49f52d0e0271b9f189e0561cbb314f81e1;hp=4337956170496b3c3715f58945377657b4d96fe7;hpb=f18af303fe2f9dca05beae7852f3904ac4bfddba;p=lyx.git diff --git a/src/LayoutFile.cpp b/src/LayoutFile.cpp index 4337956170..5f2f0d3db8 100644 --- a/src/LayoutFile.cpp +++ b/src/LayoutFile.cpp @@ -182,7 +182,8 @@ std::vector LayoutFileList::classList() const } -void LayoutFileList::reset(LayoutFileIndex const & classname) { +void LayoutFileList::reset(LayoutFileIndex const & classname) +{ LASSERT(haveClass(classname), /**/); LayoutFile * tc = classmap_[classname]; LayoutFile * tmpl = @@ -216,6 +217,7 @@ string layoutpost = } + LayoutFileIndex LayoutFileList::addEmptyClass(string const & textclass) { FileName const tempLayout = FileName::tempName("basic_layout"); @@ -257,8 +259,8 @@ LayoutFileIndex LayoutFileList::addEmptyClass(string const & textclass) } -LayoutFileIndex - LayoutFileList::addLocalLayout(string const & textclass, string const & path) +LayoutFileIndex LayoutFileList::addLocalLayout( + string const & textclass, string const & path) { // FIXME There is a bug here: 4593 // @@ -321,7 +323,8 @@ LayoutFileIndex return textclass; } } - // If .layout is not in local directory, or an invalid layout is found, return null + // If .layout is not in local directory, or an invalid layout + // is found, return null return string(); }