]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
Pimpl MathMacro
[lyx.git] / src / LyXVC.cpp
index fb6e8224266e7e6a81b9019b897b219b079e727e..4dbcfd2675f5041bda2285e6950f266cc2fee87a 100644 (file)
@@ -25,6 +25,7 @@
 #include "support/filetools.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
+#include "support/TempFile.h"
 
 using namespace std;
 using namespace lyx::support;
@@ -362,7 +363,9 @@ string const LyXVC::getLogFile() const
        if (!vcs)
                return string();
 
-       FileName const tmpf = FileName::tempName("lyxvclog");
+       TempFile tempfile("lyxvclog");
+       tempfile.setAutoRemove(false);
+       FileName const tmpf = tempfile.name();
        if (tmpf.empty()) {
                LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
                return string();