]> git.lyx.org Git - lyx.git/commitdiff
use support::FileName
authorAndré Pönitz <poenitz@gmx.net>
Wed, 7 Nov 2007 22:04:02 +0000 (22:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 7 Nov 2007 22:04:02 +0000 (22:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21500 a592a061-630c-0410-9148-cb99ea01b6c8

src/ConverterCache.cpp

index a58bfb2bce2bd2684f697232b88f5f503472dc57..8088ca29fe24e33de83367388728bdea141b1cbf 100644 (file)
@@ -26,8 +26,8 @@
 #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 <fstream>
 #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 +399,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;