From: Richard Heck Date: Sat, 16 Dec 2017 04:54:50 +0000 (-0500) Subject: Fix #10865 compiler warnings. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4210 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=08010eba51ac75da2a8f9766bfc2f5dea4c217c4;p=lyx.git Fix #10865 compiler warnings. --- diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp index 598e108b73..f00f017e2e 100644 --- a/src/graphics/GraphicsConverter.cpp +++ b/src/graphics/GraphicsConverter.cpp @@ -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))