]> git.lyx.org Git - lyx.git/commitdiff
Fix #10865 compiler warnings.
authorRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:54:50 +0000 (23:54 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:54:50 +0000 (23:54 -0500)
src/graphics/GraphicsConverter.cpp

index 598e108b73a153f1882eb8c618c747936b6f4936..f00f017e2e220e125e3684b0a9f7251b86292d7d 100644 (file)
@@ -381,9 +381,9 @@ static void build_script(string const & doc_fname,
 
                // If two formats share the same extension we may get identical names
                if (outfile == infile && conv.result_file().empty()) {
-                       TempFile tempfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
-                       tempfile.setAutoRemove(false);
-                       outfile = tempfile.name().toFilesystemEncoding();
+                       TempFile tmpfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
+                       tmpfile.setAutoRemove(false);
+                       outfile = tmpfile.name().toFilesystemEncoding();
                }
 
                if (!theConverters().checkAuth(conv, doc_fname))