mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Make a false positive explicit
Pleases coverity
This commit is contained in:
parent
2d86b2debb
commit
000dcb8672
@ -825,7 +825,10 @@ void MathData::collectParameters(Cursor * cur,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// put cursor in argument again
|
// put cursor in argument again
|
||||||
if (thisSlice != - 1 && thisPos == int(pos)) {
|
// Note: The first two expressions on the first line are
|
||||||
|
// equivalent (see caller), but making this explicit pleases
|
||||||
|
// coverity.
|
||||||
|
if (cur && thisSlice != -1 && thisPos == int(pos)) {
|
||||||
cur->append(params.size() - 1, argPos);
|
cur->append(params.size() - 1, argPos);
|
||||||
cur->append(argSlices);
|
cur->append(argSlices);
|
||||||
(*cur)[thisSlice].pos() = macroPos;
|
(*cur)[thisSlice].pos() = macroPos;
|
||||||
|
Loading…
Reference in New Issue
Block a user