mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 11:52:45 +00:00
Fix #10862 compiler warnings.
This commit is contained in:
parent
608124728d
commit
b1adf98037
@ -775,17 +775,17 @@ void extractSums(MathData & ar)
|
|||||||
InsetMathScript const * sub = ar[i]->asScriptInset();
|
InsetMathScript const * sub = ar[i]->asScriptInset();
|
||||||
if (sub && sub->hasDown()) {
|
if (sub && sub->hasDown()) {
|
||||||
// try to figure out the summation index from the subscript
|
// try to figure out the summation index from the subscript
|
||||||
MathData const & ar = sub->down();
|
MathData const & md = sub->down();
|
||||||
MathData::const_iterator xt =
|
MathData::const_iterator xt =
|
||||||
find_if(ar.begin(), ar.end(), &testEqualSign);
|
find_if(md.begin(), md.end(), &testEqualSign);
|
||||||
if (xt != ar.end()) {
|
if (xt != md.end()) {
|
||||||
// we found a '=', use everything in front of that as index,
|
// we found a '=', use everything in front of that as index,
|
||||||
// and everything behind as lower index
|
// and everything behind as lower index
|
||||||
p->cell(1) = MathData(buf, ar.begin(), xt);
|
p->cell(1) = MathData(buf, md.begin(), xt);
|
||||||
p->cell(2) = MathData(buf, xt + 1, ar.end());
|
p->cell(2) = MathData(buf, xt + 1, md.end());
|
||||||
} else {
|
} else {
|
||||||
// use everything as summation index, don't use scripts.
|
// 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;
|
lyxerr << "Cannot differentiate less than 0 or more than 1000 times !" << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < mult; ++i)
|
for (int ii = 0; ii < mult; ++ii)
|
||||||
diff->addDer(MathData(buf, dt + 1, st));
|
diff->addDer(MathData(buf, dt + 1, st));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user