]> git.lyx.org Git - features.git/commitdiff
Did not need to change this.
authorRichard Heck <rgheck@comcast.net>
Fri, 7 Mar 2008 01:21:03 +0000 (01:21 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 7 Mar 2008 01:21:03 +0000 (01:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23529 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 4a0a9a7a85c0c2b3b6b0e96d76191fbed2f73167..2541e83a7467837d0a9b1470800df65f9752bcb8 100644 (file)
@@ -159,7 +159,7 @@ public:
 
        ///
        void validate(LaTeXFeatures & features,
-                     Layout const * layout) const;
+                     Layout const & layout) const;
 
        /// Checks if the paragraph contains only text and no inset or font change.
        bool onlyText(Buffer const & buf, Font const & outerfont,
@@ -987,14 +987,14 @@ bool Paragraph::Private::latexSpecialPhrase(odocstream & os, pos_type & i,
 
 
 void Paragraph::Private::validate(LaTeXFeatures & features,
-                               Layout const * layout) const
+                               Layout const & layout) const
 {
        // check the params.
        if (!params_.spacing().isDefault())
                features.require("setspace");
 
        // then the layouts
-       features.useLayout(layout->name());
+       features.useLayout(layout.name());
 
        // then the fonts
        fontlist_.validate(features);
@@ -1009,7 +1009,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features,
        for (; icit != iend; ++icit) {
                if (icit->inset) {
                        icit->inset->validate(features);
-                       if (layout->needprotect &&
+                       if (layout.needprotect &&
                            icit->inset->lyxCode() == FOOT_CODE)
                                features.require("NeedLyXFootnoteCode");
                }
@@ -1175,7 +1175,7 @@ void Paragraph::write(ostream & os, BufferParams const & bparams,
 
 void Paragraph::validate(LaTeXFeatures & features) const
 {
-       d->validate(features, d->layout_);
+       d->validate(features, *d->layout_);
 }