From: Stephan Witt Date: Tue, 18 Feb 2020 07:55:45 +0000 (+0100) Subject: Remove useless assignments to a local variables never read later. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=09e4f8e4e4b37dc506cc183c75e9527e86929d2b;p=features.git Remove useless assignments to a local variables never read later. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index f5444e7baa..ac871d53d4 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1610,7 +1610,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (inautoarg) { cur.leaveInset(cur.inset()); cur.posForward(); - inautoarg = false; } FuncRequest const cmd2(LFUN_ARGUMENT_INSERT, la_pair.first); lyx::dispatch(cmd2); @@ -2096,7 +2095,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (inautoarg) { cur.leaveInset(cur.inset()); cur.posForward(); - inautoarg = false; if (arg.insertonnewline && cur.pos() > 0) { FuncRequest cmd2(LFUN_PARAGRAPH_BREAK); lyx::dispatch(cmd2);