]> git.lyx.org Git - lyx.git/blobdiff - src/ConverterCache.cpp
cosmetics
[lyx.git] / src / ConverterCache.cpp
index a58bfb2bce2bd2684f697232b88f5f503472dc57..cea102075bd913a8c06824763af2d2bb8fe43da6 100644 (file)
 #include "support/lyxtime.h"
 #include "support/Package.h"
 
+#include <boost/assert.hpp>
 #include <boost/crc.hpp>
-#include <boost/filesystem/operations.hpp>
 #include <boost/current_function.hpp>
 
+#include <algorithm>
 #include <fstream>
 #include <iomanip>
 #include <map>
 #include <sstream>
 
-using lyx::support::addName;
-
 using std::string;
 
-namespace fs = boost::filesystem;
-
 namespace lyx {
 
 using support::FileName;
+using support::addName;
 
 namespace {
 
@@ -402,7 +400,7 @@ bool ConverterCache::inCache(FileName const & orig_from,
                LYXERR(Debug::FILES) << "not in cache." << std::endl;
                return false;
        }
-       time_t const timestamp = fs::last_write_time(orig_from.toFilesystemEncoding());
+       time_t const timestamp = orig_from.lastModified();
        if (item->timestamp == timestamp) {
                LYXERR(Debug::FILES) << "identical timestamp." << std::endl;
                return true;