commit 31aee4b6986f481102a4e48b485b81f1ee74d777 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Feb 13 23:46:46 2025 +0100
Revert "avoid temporary variables (spotted by Coverity Scan)" This reverts commit b4a982e0229ea953d458a495e56e7362c6a3b78b. --- src/LyXRC.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 966b2ce410..4309fc41d4 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -958,14 +958,16 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) case RC_VIEWER_ALTERNATIVES: { string format, command; if ((lexrc >> format) && lexrc.next(true)) { - viewer_alternatives[format].insert(lexrc.getString()); + command = lexrc.getString(); + viewer_alternatives[format].insert(command); } break; } case RC_EDITOR_ALTERNATIVES: { string format, command; if ((lexrc >> format) && lexrc.next(true)) { - editor_alternatives[format].insert(lexrc.getString()); + command = lexrc.getString(); + editor_alternatives[format].insert(command); } break; } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs