From 5579327a30ccbebd9405e4e9a0a640fffe51190b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 14 Oct 2008 14:05:37 +0000 Subject: [PATCH] speed up _a_lot_ switchEncoding() by avoiding an object copy (see bug 5347) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26900 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 2 +- status.15x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index c3bb39bb85..24639e54be 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -864,7 +864,7 @@ void latexParagraphs(Buffer const & buf, pair switchEncoding(odocstream & os, BufferParams const & bparams, OutputParams const & runparams, Encoding const & newEnc) { - Encoding const oldEnc = *runparams.encoding; + Encoding const & oldEnc = *runparams.encoding; bool moving_arg = runparams.moving_arg; if ((bparams.inputenc != "auto" && bparams.inputenc != "default") || moving_arg) diff --git a/status.15x b/status.15x index 17166bbbe6..9416c5c3ea 100644 --- a/status.15x +++ b/status.15x @@ -104,6 +104,8 @@ What's new - Fix importing of LaTeX files that don't use the package inputenc (bug 5181). +- Speedup LaTeX export (part of bug 5347). + - Fix output of citation commands in the ReVTeX4 class (bug 5182). - Fix output of some Greek characters.