forked from qt-creator/qt-creator
ClangRefactoring: Fix compile for Qt < 5.8
Change-Id: I61a848c9a7bad42697dd6de4f5b002cc655381c6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -52,7 +52,7 @@ void FileStatusCache::update(FilePathId filePathId)
|
|||||||
|
|
||||||
if (found != m_cacheEntries.end() && found->filePathId == filePathId) {
|
if (found != m_cacheEntries.end() && found->filePathId == filePathId) {
|
||||||
QFileInfo fileInfo = qFileInfo(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);
|
QFileInfo fileInfo = qFileInfo(filePathId);
|
||||||
auto inserted = m_cacheEntries.emplace(found,
|
auto inserted = m_cacheEntries.emplace(found,
|
||||||
filePathId,
|
filePathId,
|
||||||
fileInfo.lastModified().toSecsSinceEpoch());
|
fileInfo.lastModified().toMSecsSinceEpoch() / 1000);
|
||||||
|
|
||||||
return *inserted;
|
return *inserted;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user