From b730b1c8f8e4ff2cbd646e0260edfe20e3abdeed Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 15 Dec 2010 23:46:02 +0000 Subject: [PATCH] Cleanup: TeXEnvironment doesn't need data. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36897 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index fa78f8caf7..4f39ee58d7 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -242,8 +242,7 @@ TeXEnvironment(Buffer const & buf, Text const & text, ParagraphList::const_iterator pit, odocstream & os, TexRow & texrow, - OutputParams const & runparams, - TeXEnvironementData const & data) + OutputParams const & runparams) { LYXERR(Debug::LATEX, "TeXEnvironment... " << &*pit); ParagraphList const & paragraphs = text.paragraphs(); @@ -292,12 +291,11 @@ TeXEnvironment(Buffer const & buf, Layout const & style = force_plain_layout ? buf.params().documentClass().plainLayout() : par->layout(); if (style.isEnvironment()) { - TeXEnvironementData const inner_data = prepareEnvironement(buf, + TeXEnvironementData const data = prepareEnvironement(buf, text, par, os, texrow, runparams); // Recursive call to TeXEnvironment! - par = TeXEnvironment(buf, text, par, os, texrow, runparams, - inner_data); - finishEnvironement(os, texrow, runparams, inner_data); + par = TeXEnvironment(buf, text, par, os, texrow, runparams); + finishEnvironement(os, texrow, runparams, data); } else { TeXOnePar(buf, text, par, os, texrow, runparams); if (par != text.paragraphs().end()) @@ -1023,7 +1021,7 @@ void latexParagraphs(Buffer const & buf, !par->params().leftIndent().zero()) { TeXEnvironementData const data = prepareEnvironement(buf, text, par, os, texrow, runparams); - par = TeXEnvironment(buf, text, par, os, texrow, runparams, data); + par = TeXEnvironment(buf, text, par, os, texrow, runparams); finishEnvironement(os, texrow, runparams, data); } else { TeXOnePar(buf, text, par, os, texrow, runparams, everypar);