Yet another unused variable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-09-23 17:52:16 +00:00
parent 4ad010e3a1
commit ca31c55029

View File

@ -158,8 +158,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
(outer_language->encoding()->hasFixedWidth()) ?
outer_language->encoding()
: encodings.fromLyXName("iso8859-1");
pair<bool, int> const c = switchEncoding(os.os(),
buffer().params(), runparams, *lstenc, true);
switchEncoding(os.os(), buffer().params(), runparams, *lstenc, true);
runparams.encoding = lstenc;
encoding_switched = true;
}
@ -250,8 +249,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
if (encoding_switched){
// Switch back
pair<bool, int> const c = switchEncoding(os.os(),
buffer().params(), runparams, *save_enc, true);
switchEncoding(os.os(), buffer().params(), runparams, *save_enc, true);
runparams.encoding = save_enc;
}