From: Richard Heck Date: Fri, 23 Sep 2011 17:52:16 +0000 (+0000) Subject: Yet another unused variable. X-Git-Tag: 2.1.0beta1~2671 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ca31c55029b3e7e57ad55ad5ec3f79623ab08b61;p=features.git Yet another unused variable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39739 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index cb3e9b56cb..6156f8883f 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -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 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 const c = switchEncoding(os.os(), - buffer().params(), runparams, *save_enc, true); + switchEncoding(os.os(), buffer().params(), runparams, *save_enc, true); runparams.encoding = save_enc; }