commit 497a5cea7f08e96ca8de0d8db53104b7033031b5 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Sun Feb 16 19:12:37 2025 +0100
Avoid a temporary variable (spotted by Coverity Scan) --- src/Text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text.cpp b/src/Text.cpp index 30b3e6d8e1..7f4c10b7df 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -7059,9 +7059,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, enable = false; // Check if we have a non-default font attribute // in the selection range. - DocIterator const from = cur.selectionBegin(); + DocIterator dit = cur.selectionBegin(); DocIterator const to = cur.selectionEnd(); - for (DocIterator dit = from ; dit != to && !dit.atEnd(); ) { + for ( ; dit != to && !dit.atEnd(); ) { if (!dit.inTexted()) { dit.forwardPos(); continue; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs