]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
Rationalise includes
[lyx.git] / src / TextClass.cpp
index e71fed068814bb7a548b36ada63d46c932bdbef8..b282ba380261a5277d97448ce9eb2d08212a2c3e 100644 (file)
@@ -61,7 +61,7 @@ namespace lyx {
 // You should also run the development/tools/updatelayouts.py script,
 // to update the format of all of our layout files.
 //
-int const LAYOUT_FORMAT = 59; //gm: OutlinerName, AddToToc, IsTocCaption
+int const LAYOUT_FORMAT = 60; //lasgouttes LongTableNoNumber => Unnumbered
 
 namespace {
 
@@ -528,6 +528,8 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
                        // Either way, we just scan the rest and discard it
                        else {
                                Layout lay;
+                               // false positive from coverity
+                               // coverity[CHECKED_RETURN]
                                readStyle(lexrc, lay);
                        }
                        break;
@@ -1511,7 +1513,7 @@ InsetLayout const & DocumentClass::insetLayout(docstring const & name) const
 
 
 InsetLayout const & DocumentClass::plainInsetLayout() {
-       static InsetLayout plain_insetlayout_;
+       static const InsetLayout plain_insetlayout_;
        return plain_insetlayout_;
 }