From: Richard Heck Date: Sat, 16 Dec 2017 04:47:20 +0000 (-0500) Subject: Fix #10862 compiler warnings. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4213 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b1adf98037faadb4fe0096efad302350fd5e5359;p=lyx.git Fix #10862 compiler warnings. --- diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index 52fa0cf0fa..323ea138d1 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -775,17 +775,17 @@ void extractSums(MathData & ar) InsetMathScript const * sub = ar[i]->asScriptInset(); if (sub && sub->hasDown()) { // try to figure out the summation index from the subscript - MathData const & ar = sub->down(); + MathData const & md = sub->down(); MathData::const_iterator xt = - find_if(ar.begin(), ar.end(), &testEqualSign); - if (xt != ar.end()) { + find_if(md.begin(), md.end(), &testEqualSign); + if (xt != md.end()) { // we found a '=', use everything in front of that as index, // and everything behind as lower index - p->cell(1) = MathData(buf, ar.begin(), xt); - p->cell(2) = MathData(buf, xt + 1, ar.end()); + p->cell(1) = MathData(buf, md.begin(), xt); + p->cell(2) = MathData(buf, xt + 1, md.end()); } else { // use everything as summation index, don't use scripts. - p->cell(1) = ar; + p->cell(1) = md; } } @@ -900,7 +900,7 @@ void extractDiff(MathData & ar) lyxerr << "Cannot differentiate less than 0 or more than 1000 times !" << endl; continue; } - for (int i = 0; i < mult; ++i) + for (int ii = 0; ii < mult; ++ii) diff->addDer(MathData(buf, dt + 1, st)); } } else {