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
This commit is contained in:
Jean-Marc Lasgouttes 2008-10-14 14:05:37 +00:00
parent eceb3b75a1
commit 5579327a30
2 changed files with 3 additions and 1 deletions

View File

@ -864,7 +864,7 @@ void latexParagraphs(Buffer const & buf,
pair<bool, int> switchEncoding(odocstream & os, BufferParams const & bparams, pair<bool, int> switchEncoding(odocstream & os, BufferParams const & bparams,
OutputParams const & runparams, Encoding const & newEnc) OutputParams const & runparams, Encoding const & newEnc)
{ {
Encoding const oldEnc = *runparams.encoding; Encoding const & oldEnc = *runparams.encoding;
bool moving_arg = runparams.moving_arg; bool moving_arg = runparams.moving_arg;
if ((bparams.inputenc != "auto" && bparams.inputenc != "default") if ((bparams.inputenc != "auto" && bparams.inputenc != "default")
|| moving_arg) || moving_arg)

View File

@ -104,6 +104,8 @@ What's new
- Fix importing of LaTeX files that don't use the package inputenc - Fix importing of LaTeX files that don't use the package inputenc
(bug 5181). (bug 5181).
- Speedup LaTeX export (part of bug 5347).
- Fix output of citation commands in the ReVTeX4 class (bug 5182). - Fix output of citation commands in the ReVTeX4 class (bug 5182).
- Fix output of some Greek characters. - Fix output of some Greek characters.