]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Restore the version number position on the splash screen
[lyx.git] / src / converter.C
index 3b4ccb6144e2759cac88732a656e4bba8f449681..4fc2022eb4a25a5b6a65403f4423f2699ff8c186 100644 (file)
@@ -49,7 +49,6 @@ using support::makeAbsPath;
 using support::makeRelPath;
 using support::onlyFilename;
 using support::onlyPath;
-using support::Path;
 using support::prefixIs;
 using support::quoteName;
 using support::removeExtension;
@@ -348,8 +347,10 @@ bool Converters::convert(Buffer const * buffer,
        // This has the added benefit that all other files that may be
        // generated by the converter are deleted when LyX closes and do not
        // clutter the real working directory.
-       string path = onlyPath(from_file.absFilename());
-       Path p(FileName(path));
+       string const path(onlyPath(from_file.absFilename()));
+       // Prevent the compiler from optimizing away p
+       FileName pp(path);
+       support::Path p(pp);
 
        // empty the error list before any new conversion takes place.
        errorList.clear();
@@ -431,7 +432,8 @@ bool Converters::convert(Buffer const * buffer,
                        Systemcall one;
                        int res;
                        if (conv.original_dir) {
-                               Path p(FileName(buffer->filePath()));
+                               FileName path(buffer->filePath());
+                               support::Path p(path);
                                res = one.startscript(type,
                                        to_filesystem8bit(from_utf8(command)));
                        } else