]> git.lyx.org Git - features.git/commitdiff
Squash warnings. The latter might matter.
authorRichard Heck <rgheck@comcast.net>
Mon, 20 Dec 2010 00:57:16 +0000 (00:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 20 Dec 2010 00:57:16 +0000 (00:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36953 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.cpp

index ea72756300007ead9f54ecffe1d332f06ce068fe..63e61ac4b13fd746c486abf971aaca24caf21079 100644 (file)
@@ -405,7 +405,7 @@ void TeXOnePar(Buffer const & buf,
                << everypar << "'");
 
        OutputParams runparams = runparams_in;
-       runparams.isLastPar = (pit == paragraphs.size() - 1);
+       runparams.isLastPar = (pit == pit_type(paragraphs.size() - 1));
        // We reinitialze par begin and end to be on the safe side
        // with embedded inset as we don't know if they set those
        // value correctly.
@@ -977,7 +977,7 @@ void latexParagraphs(Buffer const & buf,
 
        pit_type pit = runparams.par_begin;
        // lastpit is for the language check after the loop.
-       pit_type lastpit;
+       pit_type lastpit = pit;
        // variables used in the loop:
        bool was_title = false;
        bool already_title = false;