mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix #10859 compiler warnings.
This commit is contained in:
parent
b954f478e3
commit
608124728d
@ -813,8 +813,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.recordUndoSelection();
|
cur.recordUndoSelection();
|
||||||
// if the inset can not be removed from within, delete it
|
// if the inset can not be removed from within, delete it
|
||||||
if (!cur.backspace(cmd.getArg(0) == "force")) {
|
if (!cur.backspace(cmd.getArg(0) == "force")) {
|
||||||
FuncRequest cmd = FuncRequest(LFUN_CHAR_DELETE_FORWARD, "force");
|
FuncRequest newcmd = FuncRequest(LFUN_CHAR_DELETE_FORWARD, "force");
|
||||||
cur.innerText()->dispatch(cur, cmd);
|
cur.innerText()->dispatch(cur, newcmd);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -827,8 +827,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.recordUndoSelection();
|
cur.recordUndoSelection();
|
||||||
// if the inset can not be removed from within, delete it
|
// if the inset can not be removed from within, delete it
|
||||||
if (!cur.erase(cmd.getArg(0) == "force")) {
|
if (!cur.erase(cmd.getArg(0) == "force")) {
|
||||||
FuncRequest cmd = FuncRequest(LFUN_CHAR_DELETE_FORWARD, "force");
|
FuncRequest newcmd = FuncRequest(LFUN_CHAR_DELETE_FORWARD, "force");
|
||||||
cur.innerText()->dispatch(cur, cmd);
|
cur.innerText()->dispatch(cur, newcmd);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user