]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
TR1: move TR1 check to config.h / buildsystem
[lyx.git] / src / Paragraph.cpp
index 75e0f343696ffe320ed5980744718a5561078af0..150c28d6a9adafe53b8be2cdc7d224dbf3d297e9 100644 (file)
@@ -1980,7 +1980,7 @@ int Paragraph::Private::endTeXParParams(BufferParams const & bparams,
 
 
 // This one spits out the text of the paragraph
-bool Paragraph::latex(BufferParams const & bparams,
+void Paragraph::latex(BufferParams const & bparams,
        Font const & outerfont,
        odocstream & os, TexRow & texrow,
        OutputParams const & runparams,
@@ -1994,9 +1994,7 @@ bool Paragraph::latex(BufferParams const & bparams,
                bparams.documentClass().plainLayout() : *d->layout_;
 
        if (!force && style.inpreamble)
-               return false;
-
-       bool return_value = false;
+               return;
 
        bool const allowcust = allowParagraphCustomization();
 
@@ -2256,7 +2254,6 @@ bool Paragraph::latex(BufferParams const & bparams,
        // Needed if there is an optional argument but no contents.
        if (body_pos > 0 && body_pos == size()) {
                os << "}]~";
-               return_value = false;
        }
 
        if (allowcust && d->endTeXParParams(bparams, os, texrow, runparams)
@@ -2267,7 +2264,6 @@ bool Paragraph::latex(BufferParams const & bparams,
        }
 
        LYXERR(Debug::LATEX, "Paragraph::latex... done " << this);
-       return return_value;
 }