From 092d5068bd586370862a1eb454830fd68f238ea6 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 22 Feb 2018 13:50:48 +0100 Subject: [PATCH] ClangRefactoring: Fix compile for Qt < 5.8 Change-Id: I61a848c9a7bad42697dd6de4f5b002cc655381c6 Reviewed-by: Marco Bubke --- src/tools/clangrefactoringbackend/source/filestatuscache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/clangrefactoringbackend/source/filestatuscache.cpp b/src/tools/clangrefactoringbackend/source/filestatuscache.cpp index 427f166ed15..14ad48da143 100644 --- a/src/tools/clangrefactoringbackend/source/filestatuscache.cpp +++ b/src/tools/clangrefactoringbackend/source/filestatuscache.cpp @@ -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; }