]> git.lyx.org Git - lyx.git/blobdiff - src/Exporter.cpp
cleanups: split Paragraph::Private::simpleTeXSpecialChars() in two. Remove two or...
[lyx.git] / src / Exporter.cpp
index 5826cb52fcd7ae358d199bc0a192f44eceb00180..2dc94daeb9a3438554c68e82888c0f91f984d6b1 100644 (file)
@@ -78,7 +78,7 @@ vector<string> const Backends(Buffer const & buffer)
 /// ask the user what to do if a file already exists
 int checkOverwrite(FileName const & filename)
 {
-       if (fs::exists(filename.toFilesystemEncoding())) {
+       if (filename.exists()) {
                docstring text = bformat(_("The file %1$s already exists.\n\n"
                                                     "Do you want to overwrite that file?"),
                                      makeDisplayPath(filename.absFilename()));
@@ -243,7 +243,7 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                }
                if (status == CANCEL) {
                        buffer->message(_("Document export cancelled."));
-               } else if (fs::exists(tmp_result_file.toFilesystemEncoding())) {
+               } else if (tmp_result_file.exists()) {
                        // Finally copy the main file
                        status = copyFile(format, tmp_result_file,
                                          FileName(result_file), result_file,