ClangRefactoring: Fix compile for Qt < 5.8

Change-Id: I61a848c9a7bad42697dd6de4f5b002cc655381c6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Christian Stenger
2018-02-22 13:50:48 +01:00
parent f369048d41
commit 092d5068bd

View File

@@ -52,7 +52,7 @@ void FileStatusCache::update(FilePathId filePathId)
if (found != m_cacheEntries.end() && found->filePathId == filePathId) {
QFileInfo fileInfo = qFileInfo(filePathId);
found->lastModified = fileInfo.lastModified().toSecsSinceEpoch();
found->lastModified = fileInfo.lastModified().toMSecsSinceEpoch() / 1000;
}
}
@@ -76,7 +76,7 @@ Internal::FileStatusCacheEntry FileStatusCache::findEntry(FilePathId filePathId)
QFileInfo fileInfo = qFileInfo(filePathId);
auto inserted = m_cacheEntries.emplace(found,
filePathId,
fileInfo.lastModified().toSecsSinceEpoch());
fileInfo.lastModified().toMSecsSinceEpoch() / 1000);
return *inserted;
}