commit 0b73c08d66c6da57ff7693b1436dc7054273f79a
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Thu Feb 13 11:59:26 2025 +0100

    avoid temporary variable (spotted by Coverity Scan)
---
 src/tex2lyx/Preamble.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index 7f1f4ad936..f2859509b2 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -3094,14 +3094,12 @@ void Preamble::parse(Parser & p, string const & 
forceclass,
                                        if (!tex_name.empty())
                                                filename = tex_name;
                                }
-                               string outname;
                                if (makeAbsPath(filename, path).exists())
                                        fix_child_filename(filename);
                                else
                                        warning_message("Warning: Could not 
find included file '"
                                                        + filename + "'.");
-                               outname = changeExtension(filename, "lyx");
-                               h_includeonlys.push_back(outname);
+                               
h_includeonlys.push_back(changeExtension(filename, "lyx"));
                        }
                        continue;
                }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to