mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
use support::FileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21500 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9746bda072
commit
319f70b839
@ -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>
|
||||
@ -35,15 +35,12 @@
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user