]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
pimpl not needed here
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index 632acc6a7ae459626a4cdd3798024057bb8ca22e..f2af56d9a7c5b28d64c6c683f4b6f232f4978701 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "debug.h"
 #include "TextClass.h"
+#include "Layout.h"
 
 #include "support/convert.h"
 #include "support/filetools.h"
@@ -64,7 +65,6 @@ using support::makeAbsPath;
 using support::onlyPath;
 using support::os::internal_path;
 using support::rtrim;
-using support::isFileReadable;
 
 namespace fs = boost::filesystem;
 
@@ -472,7 +472,7 @@ bool tex2lyx(FileName const & infilename, std::ostream &os)
 
 bool tex2lyx(string const &infilename, FileName const &outfilename)
 {
-       if (isFileReadable(outfilename)) {
+       if (outfilename.isFileReadable()) {
                if (overwrite_files) {
                        cerr << "Overwriting existing file "
                             << outfilename << endl;