using support::makeRelPath;
using support::onlyFilename;
using support::onlyPath;
-using support::Path;
using support::prefixIs;
using support::quoteName;
using support::removeExtension;
// 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();
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